]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe9f7a2ead0572f77beea42c452c193d00c37127
treed3ee68eb3631fb32a9632f0752fd39709db515a8
parent35f4c5b3e4d5a2fb528ca61a96aefc0bee3820ca
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