Skip to content

Commit 1dfd7b7

Browse files
committed
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>
1 parent 18b6483 commit 1dfd7b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/phy/ingenic/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config PHY_INGENIC_USB
66
tristate "Ingenic SoCs USB PHY Driver"
77
depends on MIPS || COMPILE_TEST
88
depends on USB_SUPPORT
9+
depends on HAS_IOMEM
910
select GENERIC_PHY
1011
help
1112
This driver provides USB PHY support for the USB controller found

0 commit comments

Comments
 (0)