]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: add dependency on HAS_IOMEM to MDIO_BUS_MUX_MMIOREG
authorRob Herring <robh@kernel.org>
Sun, 5 Jul 2015 17:16:27 +0000 (12:16 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 21:10:38 +0000 (14:10 -0700)
commita4f1141b701adcb0d12f9911cd5cf6334cfb3bea
tree6bf70090ffdd2d538ea6dfcff84201ecaf8ed028
parentbc3e611b6dd7741793fddb5f0de5ba92bcdede68
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>
drivers/net/phy/Kconfig