summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2020-12-08 10:23:00 +0530
committerVinod Koul <vkoul@kernel.org>2020-12-08 18:06:15 +0530
commit1dfd7b7849ea8bdbbe26d280d7b43c4ae66e730f (patch)
treec6b251622a8b67f905ee80636b13e9496c28c265 /drivers/phy
parent18b648322d44e8d8950de8aa31dba9bad0a33b89 (diff)
downloadlinux-stable-1dfd7b7849ea8bdbbe26d280d7b43c4ae66e730f.tar.gz
linux-stable-1dfd7b7849ea8bdbbe26d280d7b43c4ae66e730f.tar.bz2
linux-stable-1dfd7b7849ea8bdbbe26d280d7b43c4ae66e730f.zip
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': >> phy-ingenic-usb.c:(.text+0xb66): undefined reference to `devm_platform_ioremap_resource' Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/r/20201208045300.3637026-1-vkoul@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/ingenic/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/ingenic/Kconfig b/drivers/phy/ingenic/Kconfig
index 912b14e512cb..f23cc109324b 100644
--- a/drivers/phy/ingenic/Kconfig
+++ b/drivers/phy/ingenic/Kconfig
@@ -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