net: macb: Reorganize macb_mii bringup
authorBrad Mouring <brad.mouring@ni.com>
Tue, 13 Mar 2018 21:32:13 +0000 (16:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 15:14:33 +0000 (11:14 -0400)
commit739de9a1563a19459c82d0d8c4d1cc8eb55ddf4e
treee38d03b00525a4162533af0a625398188ea2000b
parent2b221d20db7583fa8f36d4545554786fcf93ca8e
net: macb: Reorganize macb_mii bringup

The macb mii setup (mii_probe() and mii_init()) previously was
somewhat interspersed, likely a result of organic growth and hacking.

This change moves mii bus registration into mii_init and probing the
bus for devices into mii_probe.

Signed-off-by: Brad Mouring <brad.mouring@ni.com>
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c