phy: mdio-mux-meson-g12a: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Tue, 27 Aug 2019 13:49:40 +0000 (21:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2019 21:51:00 +0000 (14:51 -0700)
commitbd51ce0583e20a6e962bfdbb62f396ff6a61d7b2
tree28cfe95b367bd34dbd75813f89ed87ab03173766
parentea7076923bde9c3c692f5c8d8a46b04ec3d00680
phy: mdio-mux-meson-g12a: 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-mux-meson-g12a.c