ath79: ag71xx: replace alloc_etherdev with devm_alloc_etherdev
authorChuanhong Guo <gch981213@gmail.com>
Fri, 14 Dec 2018 16:03:43 +0000 (00:03 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 5 Mar 2019 02:02:34 +0000 (03:02 +0100)
commita4eef43a120d51bb5386730b820704e5cb5e1acf
treef18f15140d7a2379f02d3f23644bf0b53902ffc6
parentf73b2d64ed56c1ba41c1ef906ef292d07f839def
ath79: ag71xx: replace alloc_etherdev with devm_alloc_etherdev

using the devm api makes the code simpler.
also drop unneeded memory free from ag71xx_remove since they are
allocated using devm apis.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c