net: ethernet: ave: Replace alloc_etherdev() with devm_alloc_etherdev()
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Mon, 28 Sep 2020 10:04:53 +0000 (19:04 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2020 19:37:49 +0000 (12:37 -0700)
commite87fb82ddc3b9082af10705b7f3683ef652e51d4
tree434a66dac788952b2d5eb29fbc542532f6003eea
parent0675c285ea65540cccae64c87dfc7a00c7ede03a
net: ethernet: ave: Replace alloc_etherdev() with devm_alloc_etherdev()

Use devm_alloc_etherdev() to simplify the code instead of alloc_etherdev().

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/sni_ave.c