phy: mdio-bcm-iproc: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Tue, 27 Aug 2019 13:46:16 +0000 (21:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 21:51:00 +0000 (14:51 -0700)
commitbd301e05ba06548ef5afcd28d601dd3acf63fc92
tree2e6a2d4e2c115b9af433aea551abab2c4e347d4c
parenta3a90244c471854bbe79884fd5a48b84953faa75
phy: mdio-bcm-iproc: 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>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-bcm-iproc.c