ath79: ag71xx: fix error handling for of_get_phy_mode
authorDavid Bauer <mail@david-bauer.net>
Sun, 2 May 2021 22:27:59 +0000 (00:27 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 9 May 2021 23:19:32 +0000 (01:19 +0200)
commita273ac4d610b95de213fc89c713bcf1b4b851b2d
tree12156dd47bccef011f391cb919953e5b95a882c2
parent204956aea532b744b2e04142bb39b86129fc5802
ath79: ag71xx: fix error handling for of_get_phy_mode

Errors are not indicated by the phy_mode value but returned separately
from the function.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c