Message ID | 20211126091340.1013726-1-yangyingliang@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2f7ed29f2c54ace09eb09e3f97fd573a31b79309 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [-next] net: mdio: ipq8064: replace ioremap() with devm_ioremap() | expand |
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Fri, 26 Nov 2021 17:13:40 +0800 you wrote: > Use devm_ioremap() instead of ioremap() to avoid iounmap() missing. > > Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> > --- > drivers/net/mdio/mdio-ipq8064.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Here is the summary with links: - [-next] net: mdio: ipq8064: replace ioremap() with devm_ioremap() https://git.kernel.org/netdev/net-next/c/2f7ed29f2c54 You are awesome, thank you!
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;
Use devm_ioremap() instead of ioremap() to avoid iounmap() missing. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/net/mdio/mdio-ipq8064.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)