diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-05-16 01:15:41 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-16 22:19:45 (GMT) |
commit | d6a98c9680a6f885715ce64daa5de73b33d3edd4 (patch) | |
tree | 6105b62d4dd84193eb427a7d0a2365ff20dab8af /drivers/net/ethernet | |
parent | d2cf43674e17ca1c16c68d46d987d2f17bf7c371 (diff) | |
download | linux-d6a98c9680a6f885715ce64daa5de73b33d3edd4.tar.xz |
drivers/net/ethernet/renesas: don't check resource with devm_ioremap_resource
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 33dc6f2..42e9dd0 100644 --- 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); |