Skip to content

Commit 5af74bb

Browse files
ffainellidavem330
authored andcommitted
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: 9a4e796 ("net: bcmgenet: utilize generic Broadcom UniMAC MDIO controller driver") Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bb7c19f commit 5af74bb

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+1
-0
lines changed

drivers/net/ethernet/broadcom/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ config BCM63XX_ENET
6161

6262
config BCMGENET
6363
tristate "Broadcom GENET internal MAC support"
64+
depends on (OF && HAS_IOMEM) || COMPILE_TEST
6465
select MII
6566
select PHYLIB
6667
select FIXED_PHY

0 commit comments

Comments
 (0)