LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH -next] net: mdio: ipq8064: replace ioremap() with devm_ioremap()
@ 2021-11-26  9:13 Yang Yingliang
  2021-11-29 12:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2021-11-26  9:13 UTC (permalink / raw)
  To: linux-kernel, netdev; +Cc: andrew, kuba, davem

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(-)

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;
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] net: mdio: ipq8064: replace ioremap() with devm_ioremap()
  2021-11-26  9:13 [PATCH -next] net: mdio: ipq8064: replace ioremap() with devm_ioremap() Yang Yingliang
@ 2021-11-29 12:10 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-11-29 12:10 UTC (permalink / raw)
  To: Yang Yingliang; +Cc: linux-kernel, netdev, andrew, kuba, davem

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-29 13:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26  9:13 [PATCH -next] net: mdio: ipq8064: replace ioremap() with devm_ioremap() Yang Yingliang
2021-11-29 12:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).