net: dsa: bcm_sf2: Add missing OF_MDIO dependency
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 24 Mar 2017 21:57:22 +0000 (14:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Mar 2017 22:03:06 +0000 (15:03 -0700)
bcm_sf2 does require the MDIO_BCM_UNIMAC driver which is now dependent
on OF_MDIO but also internally uses of_mdio.c provided routines which
are guarted with OF_MDIO.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 90eff9096c01 ("net: phy: Allow splitting MDIO bus/device support from PHYs")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/Kconfig

index 065984670ff19a0a03c4818097f574de17907e87..564b267c84284c2b527d4959e1ab4b1bb7e6c3b3 100644 (file)
@@ -11,7 +11,7 @@ config NET_DSA_MV88E6060
 
 config NET_DSA_BCM_SF2
        tristate "Broadcom Starfighter 2 Ethernet switch support"
-       depends on HAS_IOMEM && NET_DSA
+       depends on HAS_IOMEM && NET_DSA && OF_MDIO
        select NET_DSA_TAG_BRCM
        select FIXED_PHY
        select BCM7XXX_PHY