net: thunderx: Cleanup PHY probing code.
authorDavid Daney <david.daney@cavium.com>
Fri, 11 Mar 2016 17:53:09 +0000 (09:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 19:27:22 +0000 (15:27 -0400)
commit5fc7cf179449502ad4ad67845ded2df94b680de2
tree03529ca2ac4a8770ccd3b16c82e7b60bf681bb25
parent0df83e7a6b58674683677f572e4e2361b2a69eea
net: thunderx: Cleanup PHY probing code.

Remove the call to force the octeon-mdio driver to be loaded.  Allow
the standard driver loading mechanisms to load the PHY drivers, and
use -EPROBE_DEFER to cause the BGX driver to be probed only after the
PHY drivers are available.

Reorder the setting of MAC addresses and PHY probing to allow BGX
LMACs with no attached PHY to still be assigned a MAC address.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c