Commit 126e6122 authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller

net: systemport: Use devm_ioremap_resource()

Use devm_ioremap_resource() because devm_request_and_ioremap() is
obsoleted by devm_ioremap_resource().
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 005e35f5
...@@ -1514,10 +1514,9 @@ static int bcm_sysport_probe(struct platform_device *pdev) ...@@ -1514,10 +1514,9 @@ static int bcm_sysport_probe(struct platform_device *pdev)
goto err; goto err;
} }
priv->base = devm_request_and_ioremap(&pdev->dev, r); priv->base = devm_ioremap_resource(&pdev->dev, r);
if (!priv->base) { if (IS_ERR(priv->base)) {
dev_err(&pdev->dev, "register remap failed\n"); ret = PTR_ERR(priv->base);
ret = -ENOMEM;
goto err; goto err;
} }
......
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