net: dsa: Make mdio bus optional
authorAndrew Lunn <andrew@lunn.ch>
Sat, 4 Jun 2016 19:17:04 +0000 (21:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jun 2016 21:29:54 +0000 (14:29 -0700)
commite755e49eb3ea925834006c294e989df52f592580
tree22a130b4708421378138307d97c5ccfd3fe294ff
parent39a7f2a4eb496c0c68cc93fcb403190b48605168
net: dsa: Make mdio bus optional

The switch may want to instantiate its own MDIO bus. Only do it
centrally if the switch has not already created one, and the read op
is implemented.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c