summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-05-14 12:15:42 +0900
committerDavid S. Miller <davem@davemloft.net>2014-05-14 15:42:07 -0400
commit126e612223c885a8718839d97c67473503bea58a (patch)
tree681288db60c5c7c932bc51005f594515e31144f6
parent005e35f5f0783925428a78bb2b21ae92f3514e9c (diff)
downloadop-kernel-dev-126e612223c885a8718839d97c67473503bea58a.zip
op-kernel-dev-126e612223c885a8718839d97c67473503bea58a.tar.gz
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>
-rw-r--r--drivers/net/ethernet/broadcom/bcmsysport.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.c
index 56b74a4..f66de13 100644
--- a/drivers/net/ethernet/broadcom/bcmsysport.c
+++ b/drivers/net/ethernet/broadcom/bcmsysport.c
@@ -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;
}
OpenPOWER on IntegriCloud