net: systemport: Use devm_ioremap_resource()
Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
005e35f5f0
commit
126e612223
|
@ -1514,10 +1514,9 @@ static int bcm_sysport_probe(struct platform_device *pdev)
|
|||
goto err;
|
||||
}
|
||||
|
||||
priv->base = devm_request_and_ioremap(&pdev->dev, r);
|
||||
if (!priv->base) {
|
||||
dev_err(&pdev->dev, "register remap failed\n");
|
||||
ret = -ENOMEM;
|
||||
priv->base = devm_ioremap_resource(&pdev->dev, r);
|
||||
if (IS_ERR(priv->base)) {
|
||||
ret = PTR_ERR(priv->base);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue