linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] phy: ingenic: depend on HAS_IOMEM
@ 2020-12-08  4:53 Vinod Koul
  0 siblings, 0 replies; only message in thread
From: Vinod Koul @ 2020-12-08  4:53 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: linux-kernel, Vinod Koul, Paul Cercueil,
	漆鹏振 (Qi Pengzhen),
	周琰杰 (Zhou Yanjie),
	kernel test robot

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>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/phy/ingenic/Kconfig | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.26.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-08  4:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08  4:53 [PATCH] phy: ingenic: depend on HAS_IOMEM Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).