via-rhine: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 21 Aug 2019 12:50:50 +0000 (20:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 20:42:12 +0000 (13:42 -0700)
commit8a54d4c21919022e9fc59e71ca0f86d4431a8e2a
tree0235207c92f603f7ab0429a9c91879d729e0dcdd
parentc8ace62ff3a98bdc52c6df23c23465cfd9e3a847
via-rhine: 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/via/via-rhine.c