net: ks8851: Use devm_alloc_etherdev()
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:32 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:04 +0000 (16:30 -0700)
commitb6948e1b7b094ccc86b1ae768beab734e5355ced
tree2e845f1af866c40d9281c0bf59506c7620846f54
parent848fc0ce6cb84430c4b1dd0a749015ad9af1b766
net: ks8851: Use devm_alloc_etherdev()

Use device managed version of alloc_etherdev() to simplify the code.
No functional change intended.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: Petr Stetiar <ynezz@true.cz>
Cc: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c