Skip to content

Commit cfa5200

Browse files
robherringdavem330
authored andcommitted
net: phy: add dependency on HAS_IOMEM to MDIO_BUS_MUX_MMIOREG
On UML builds, mdio-mux-mmioreg.c fails to compile: drivers/net/phy/mdio-mux-mmioreg.c:50:3: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration] drivers/net/phy/mdio-mux-mmioreg.c:63:3: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration] This is due to CONFIG_OF now being user selectable. Add a dependency on HAS_IOMEM to fix this. Signed-off-by: Rob Herring <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: David S. Miller <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent aa43c5f commit cfa5200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ config MDIO_BUS_MUX_GPIO
191191

192192
config MDIO_BUS_MUX_MMIOREG
193193
tristate "Support for MMIO device-controlled MDIO bus multiplexers"
194-
depends on OF_MDIO
194+
depends on OF_MDIO && HAS_IOMEM
195195
select MDIO_BUS_MUX
196196
help
197197
This module provides a driver for MDIO bus multiplexers that

0 commit comments

Comments
 (0)