]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97583f8700c331f919bf80c831ecca7a28ecc7c9
treee38d03b00525a4162533af0a625398188ea2000b
parenta53288a997669048afe56db7a6d773b4ebeaa1ff
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