mv643xx_eth: defer probing if Marvell Orion MDIO driver not loaded
authorSimon Baatz <gmbnomis@gmail.com>
Sun, 24 Mar 2013 10:34:00 +0000 (10:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Mar 2013 21:07:15 +0000 (17:07 -0400)
commit976c90b90187f2eb4778d766d52d6ab176714734
tree1717485c6a70bec36da9a4ccec849c7470962ff5
parent404b8bed14097fb6fe74cc7fcf72781714ed263a
mv643xx_eth: defer probing if Marvell Orion MDIO driver not loaded

When both the Marvell MV643XX ethernet driver and the Orion MDIO driver
are compiled as modules, the ethernet driver may be probed before the
MDIO driver.  Let mv643xx_eth_probe() return EPROBE_DEFER in this case,
i.e. when it cannot find the PHY.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c