]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit520192f64c9101219e6e65b21829bc5ce5c6c5f5
tree1717485c6a70bec36da9a4ccec849c7470962ff5
parentbd9db50f7664a1b32a31d8077482300adb9408e4
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