]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-meson: use devm_platform_ioremap_resource() to simplify code
authorYueHaibing <yuehaibing@huawei.com>
Wed, 21 Aug 2019 13:54:06 +0000 (21:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 20:52:33 +0000 (13:52 -0700)
commit0d69dc88cb2cdadefc5a702e4ec62d8f0e2aee42
tree067f1e8849c56f0c8011778195960309bd3b3cff
parent0e3daa30c1401a5e1f4b3c0c93551da6b9012265
net: stmmac: dwmac-meson: 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: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c