phy: ingenic: depend on HAS_IOMEM
authorVinod Koul <vkoul@kernel.org>
Tue, 8 Dec 2020 04:53:00 +0000 (10:23 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 8 Dec 2020 12:36:15 +0000 (18:06 +0530)
commit1dfd7b7849ea8bdbbe26d280d7b43c4ae66e730f
treec6b251622a8b67f905ee80636b13e9496c28c265
parent18b648322d44e8d8950de8aa31dba9bad0a33b89
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>
drivers/phy/ingenic/Kconfig