diff options
| author | Rob Herring <robh@kernel.org> | 2015-07-05 13:16:27 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-07-08 17:10:38 -0400 |
| commit | cfa520056407acaa29f3aa7aee10c929b371c7cf (patch) | |
| tree | 6bf70090ffdd2d538ea6dfcff84201ecaf8ed028 | |
| parent | aa43c5ff737dac5dcfccd12d23abeefbdf0579c7 (diff) | |
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 <robh@kernel.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/phy/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index cf18940f4e84..cb86d7a01542 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig | |||
| @@ -191,7 +191,7 @@ config MDIO_BUS_MUX_GPIO | |||
| 191 | 191 | ||
| 192 | config MDIO_BUS_MUX_MMIOREG | 192 | config MDIO_BUS_MUX_MMIOREG |
| 193 | tristate "Support for MMIO device-controlled MDIO bus multiplexers" | 193 | tristate "Support for MMIO device-controlled MDIO bus multiplexers" |
| 194 | depends on OF_MDIO | 194 | depends on OF_MDIO && HAS_IOMEM |
| 195 | select MDIO_BUS_MUX | 195 | select MDIO_BUS_MUX |
| 196 | help | 196 | help |
| 197 | This module provides a driver for MDIO bus multiplexers that | 197 | This module provides a driver for MDIO bus multiplexers that |
