net: ethernet: mediatek: fix error handling inside mtk_mdio_init
authorSean Wang <sean.wang@mediatek.com>
Thu, 1 Sep 2016 02:47:35 +0000 (10:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 03:53:48 +0000 (20:53 -0700)
commitaa6e8a54f653daaf34ff7fdceb2d992d714eea7c
treec14d5195812c5c760f29d9f228c4c56001554525
parent1e515b7fdbaeef29b1025c09b50ebbb132a39208
net: ethernet: mediatek: fix error handling inside mtk_mdio_init

Return -ENODEV if the MDIO bus is disabled in the device tree.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Acked-by: John Crispin <john@phrozen.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c