Skip to contentSkip to conversation

phy: ingenic: depend on HAS_IOMEM

PATCH New Vinod Koul 1 participant 1 message Dec 8, 2020 Generic PHY framework

lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 1/1 phy: ingenic: depend on HAS_IOMEM

The driver uses devm_ioremap_resource() which will not be built if CONFIG_HAS_IOMEM is not selected, so add depends on it to fix the build failure on few archs

s390-linux-ld: drivers/phy/ingenic/phy-ingenic-usb.o: in function `ingenic_usb_phy_probe':

Quoted 1 line
Quoted 1 line

phy-ingenic-usb.c:(.text+0xb66): undefined reference to `devm_platform_ioremap_resource'

---
 drivers/phy/ingenic/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/ingenic/Kconfig +1 -0
index 912b14e512cb..f23cc109324b 100644
@@ -6,6 +6,7 @@ config PHY_INGENIC_USB
 	tristate "Ingenic SoCs USB PHY Driver"
 	depends on MIPS || COMPILE_TEST
 	depends on USB_SUPPORT
+	depends on HAS_IOMEM
 	select GENERIC_PHY
 	help
 	  This driver provides USB PHY support for the USB controller found
Signature · 1 line
2.26.2