net: cpsw: Call phy_device_connect() earlier
We only want to register a slave when a valid phy is available.
Instead of manually calling mdiobus_scan() and phy_register_device()
we can let this do from phy_device_connect() which also works for
fixed phys.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3ca8217 commit ea096f2fa7ac14ddfacf9e82af7f073d77cbd06c
@Sascha Hauer Sascha Hauer authored on 19 Feb 2018
Showing 1 changed file
View
drivers/net/cpsw.c