]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: dnet: convert to devm_platform_get_and_ioremap_resource
authorDejin Zheng <zhengdejin5@gmail.com>
Sun, 19 Apr 2020 12:02:53 +0000 (20:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:18:13 +0000 (12:18 -0700)
commit7cd45c4bb2f84e07ed8eec62eca8736c1a9a55e4
treeb6b236397eb32bb8080e5732dca0997a1fcdd811
parent5eec6fcc906e932c92bbd654962f02faaad0f403
net: ethernet: dnet: convert to devm_platform_get_and_ioremap_resource

use devm_platform_get_and_ioremap_resource() to simplify code, which
contains platform_get_resource() and devm_ioremap_resource(), it also
get the resource for use by the following code.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dnet.c