ar71xx: ag71xx: make use of managed dev API simplifying code
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 7 Aug 2019 13:12:54 +0000 (15:12 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Tue, 27 Aug 2019 08:31:06 +0000 (10:31 +0200)
commit8d78aa8eaf7007db141d8543268f43c9d9210a19
tree973275fdbc4342111a09b332c38f874d2eff1d44
parentc9b28b5703324bff3ef72e27862f1a1ce0e83e7d
ar71xx: ag71xx: make use of managed dev API simplifying code

Backport of a4eef43a120d ("ath79: ag71xx: replace alloc_etherdev with devm_alloc_etherdev")
combined with the initial changes from John Crispin.

Simplifies the code a lot by using the Managed dev API.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c