]> git.baikalelectronics.ru Git - kernel.git/commit
net: broadcom: convert to devm_platform_ioremap_resource_byname()
authorDejin Zheng <zhengdejin5@gmail.com>
Mon, 20 Apr 2020 15:06:41 +0000 (23:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:53:54 +0000 (15:53 -0700)
commit6739842745019965b5c61a4326710793dd006ba6
tree5a1769090fff6812649535eab6ce265b8cf8b6ac
parent5fb1135fbb0a6f693a8f09c1e66712faccc44f76
net: broadcom: convert to devm_platform_ioremap_resource_byname()

Use the function devm_platform_ioremap_resource_byname() to simplify
source code which calls the functions platform_get_resource_byname()
and devm_ioremap_resource(). Remove also a few error messages which
became unnecessary with this software refactoring.

Suggested-by: Markus Elfring <Markus.Elfring@web.de>
Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-platform.c