]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bgmac: Use devm_platform_ioremap_resource_byname
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 7 Jun 2021 14:21:09 +0000 (22:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 21:07:22 +0000 (14:07 -0700)
commit8b375ede3c517c5abec07b5970df05be1f019c2e
treee8c6428600eadd89b4fc35a5e8a4723174742682
parent7f1eb7f69c5b5f0051a508b7c0ce9d43de83bdc5
net: ethernet: bgmac: Use devm_platform_ioremap_resource_byname

Use the devm_platform_ioremap_resource_byname() helper instead of
calling platform_get_resource_byname() and devm_ioremap_resource()
separately.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-platform.c