ath79: ag71xx: make of_get_mac_address probe defer aware
authorPetr Štetiar <ynezz@true.cz>
Tue, 30 Apr 2019 11:24:20 +0000 (13:24 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 3 May 2019 06:59:24 +0000 (08:59 +0200)
commitb9921d9640ee7a952bdb577080796720506eb442
treee7ebbd2e3c8b68f8e1b7b9ca0822d2d769874d2a
parent00360cc2118beee5bb33b8c104ca08c798f04994
ath79: ag71xx: make of_get_mac_address probe defer aware

of_get_mac_address now uses NVMEM under the hood, so it could now return
EPROBE_DEFER and it needs to be handled, which means, that it needs to
be propagated back to the device driver subsystem in order to be handled
as designed.

While at it, remove superfluous call of is_valid_ether_addr, as the MAC
address returned by of_get_mac_address was already checked by
is_valid_ether_addr internally.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c