ezchip: nps_enet: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 21 Aug 2019 13:05:09 +0000 (21:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 20:42:13 +0000 (13:42 -0700)
commitb6df983076e517af660e14a3ed6d3b1a986dfc2c
tree649e826daed55f1cc240129b356d601c51ea4c58
parent1a1ba7118807e82fab7d44ccf0910d3bb0015b0b
ezchip: nps_enet: 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/ezchip/nps_enet.c