phy: mdio-hisi-femac: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Tue, 27 Aug 2019 13:47:22 +0000 (21:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 21:51:00 +0000 (14:51 -0700)
commitba869d3c40fc130649ba81326087802ec436c84f
treed3ee68eb3631fb32a9632f0752fd39709db515a8
parentbd301e05ba06548ef5afcd28d601dd3acf63fc92
phy: mdio-hisi-femac: 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/phy/mdio-hisi-femac.c