summaryrefslogtreecommitdiff
path: root/drivers/net/mdio/mdio-ipq8064.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-11-26 17:13:40 +0800
committerDavid S. Miller <davem@davemloft.net>2021-11-29 12:02:49 +0000
commit2f7ed29f2c54ace09eb09e3f97fd573a31b79309 (patch)
tree8ddb203f7d5ebbed12bc71e264a17b4bc5599f34 /drivers/net/mdio/mdio-ipq8064.c
parentd40ce48cb3a68b54be123a1f99157c5ac613e260 (diff)
net: mdio: ipq8064: replace ioremap() with devm_ioremap()
Use devm_ioremap() instead of ioremap() to avoid iounmap() missing. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mdio/mdio-ipq8064.c')
-rw-r--r--drivers/net/mdio/mdio-ipq8064.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mdio/mdio-ipq8064.c b/drivers/net/mdio/mdio-ipq8064.c
index bd1aea2d5a26..37e0d8b6da07 100644
--- a/drivers/net/mdio/mdio-ipq8064.c
+++ b/drivers/net/mdio/mdio-ipq8064.c
@@ -127,7 +127,7 @@ ipq8064_mdio_probe(struct platform_device *pdev)
if (of_address_to_resource(np, 0, &res))
return -ENOMEM;
- base = ioremap(res.start, resource_size(&res));
+ base = devm_ioremap(&pdev->dev, res.start, resource_size(&res));
if (!base)
return -ENOMEM;