projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e222a6e
)
drivers/net/ethernet/renesas: don't check resource with devm_ioremap_resource
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 12 May 2013 13:19:49 +0000
(15:19 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Sat, 18 May 2013 09:55:56 +0000
(11:55 +0200)
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/net/ethernet/renesas/sh_eth.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/renesas/sh_eth.c
b/drivers/net/ethernet/renesas/sh_eth.c
index 33dc6f2418f2968e23a383e2c0395ed41d832132..42e9dd05c936df55e2bc62754259e1ff6e81785d 100644
(file)
--- a/
drivers/net/ethernet/renesas/sh_eth.c
+++ b/
drivers/net/ethernet/renesas/sh_eth.c
@@
-2745,11
+2745,6
@@
static int sh_eth_drv_probe(struct platform_device *pdev)
if (mdp->cd->tsu) {
struct resource *rtsu;
rtsu = platform_get_resource(pdev, IORESOURCE_MEM, 1);
- if (!rtsu) {
- dev_err(&pdev->dev, "Not found TSU resource\n");
- ret = -ENODEV;
- goto out_release;
- }
mdp->tsu_addr = devm_ioremap_resource(&pdev->dev, rtsu);
if (IS_ERR(mdp->tsu_addr)) {
ret = PTR_ERR(mdp->tsu_addr);