net: fec: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 21 Aug 2019 13:29:45 +0000 (21:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 20:42:13 +0000 (13:42 -0700)
commit4f830a5af7b5b3614a03ef784cd2f4a83ceebf27
tree500f1299ca71c27a0ec1548ea14fe4f1437172f1
parentb6df983076e517af660e14a3ed6d3b1a986dfc2c
net: fec: use devm_platform_ioremap_resource() to simplify code

Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c