net: stmmac: platform: convert to devm_platform_ioremap_resource
authorDejin Zheng <zhengdejin5@gmail.com>
Fri, 13 Mar 2020 14:42:57 +0000 (22:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 07:17:41 +0000 (00:17 -0700)
commit7a1d0e61f11676f066dc3571543b8e104ff0d055
tree193960b6416eedce4a0254dc453ff6795596291d
parent4a601f109614929aee45e58ca3514ec93da070bb
net: stmmac: platform: convert to devm_platform_ioremap_resource

Use devm_platform_ioremap_resource() to simplify code, which
contains platform_get_resource and devm_ioremap_resource.

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