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:32:44 +0000 (10:32 +0200)
commit19ed799bdcc20fab671c27fe335f3b1bb23fe78e
tree5e4d0de8a75320740db54912260f269e86af46dd
parent4d40c0edd48938069c35fd5f4f1a3d24660357a7
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