diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-07-31 17:53:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-31 17:54:25 -0700 |
commit | 5af74bb4fcf8935cff38757400c25ae10eed4fd6 (patch) | |
tree | 84f1dd288de7ffdee8487d84a33d5edf33ef1e45 /drivers/net/ethernet/broadcom | |
parent | bb7c19f96012720b895111300b9d9f3f858c3a69 (diff) | |
download | linux-stable-5af74bb4fcf8935cff38757400c25ae10eed4fd6.tar.gz linux-stable-5af74bb4fcf8935cff38757400c25ae10eed4fd6.tar.bz2 linux-stable-5af74bb4fcf8935cff38757400c25ae10eed4fd6.zip |
net: bcmgenet: Add dependency on HAS_IOMEM && OF
The driver needs CONFIG_HAS_IOMEM and OF to be functional, but we still
let it build with COMPILE_TEST. This fixes the unmet dependency after
selecting MDIO_BCM_UNIMAC in commit mentioned below:
warning: (NET_DSA_BCM_SF2 && BCMGENET) selects MDIO_BCM_UNIMAC which has
unmet direct dependencies (NETDEVICES && MDIO_DEVICE && HAS_IOMEM &&
OF_MDIO)
Fixes: 9a4e79697009 ("net: bcmgenet: utilize generic Broadcom UniMAC MDIO controller driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom')
-rw-r--r-- | drivers/net/ethernet/broadcom/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/Kconfig b/drivers/net/ethernet/broadcom/Kconfig index ec7a798c6bd1..45775399cab6 100644 --- a/drivers/net/ethernet/broadcom/Kconfig +++ b/drivers/net/ethernet/broadcom/Kconfig @@ -61,6 +61,7 @@ config BCM63XX_ENET config BCMGENET tristate "Broadcom GENET internal MAC support" + depends on (OF && HAS_IOMEM) || COMPILE_TEST select MII select PHYLIB select FIXED_PHY |