]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitf33bf6b00f20c9d26c42dfdaf8b83c2b0c1e6f71
tree067f1e8849c56f0c8011778195960309bd3b3cff
parent999232a38ff10209df1ce40cabe8cf8982c530e7
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