Commit d6a98c96 authored by Wolfram Sang's avatar Wolfram Sang Committed by David S. Miller

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: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d2cf4367
...@@ -2745,11 +2745,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev) ...@@ -2745,11 +2745,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
if (mdp->cd->tsu) { if (mdp->cd->tsu) {
struct resource *rtsu; struct resource *rtsu;
rtsu = platform_get_resource(pdev, IORESOURCE_MEM, 1); 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); mdp->tsu_addr = devm_ioremap_resource(&pdev->dev, rtsu);
if (IS_ERR(mdp->tsu_addr)) { if (IS_ERR(mdp->tsu_addr)) {
ret = PTR_ERR(mdp->tsu_addr); ret = PTR_ERR(mdp->tsu_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment