net: dsa: mv88e6xxx: Refactor MDIO so driver registers mdio bus
authorAndrew Lunn <andrew@lunn.ch>
Sat, 4 Jun 2016 19:17:06 +0000 (21:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jun 2016 21:29:54 +0000 (14:29 -0700)
commitb516d453239551d7916d5e35bc68823ed5b55f98
treee396194da850c63c821337de50bc0f878a9c7b4e
parent03a4a5408b674576e8f7e54dd6ed86398217a98e
net: dsa: mv88e6xxx: Refactor MDIO so driver registers mdio bus

Have the switch driver register its own MDIO bus. This allows for an
mdio property in the device tree, with child nodes for phys, which
can be referenced via phandles, etc.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h