]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk_star_emac: use devm_register_netdev()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Sat, 23 May 2020 13:27:11 +0000 (15:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:56:17 +0000 (16:56 -0700)
commitf6c10af7a4a8a253aee5496db334da25be0ef479
treed753232b4b8456e57c5f83bc31aab36c1ac4a1d3
parentd0b9605864ce665eab39f9fde3004c88e9b9e6f1
net: ethernet: mtk_star_emac: use devm_register_netdev()

Use the new devres variant of register_netdev() in the mtk-star-emac
driver and shrink the code by a couple lines.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_star_emac.c