]> Git Repo - linux.git/commitdiff
ptp: ptp_ines: prevent build when HAS_IOMEM is not set
authorRandy Dunlap <[email protected]>
Wed, 6 Jan 2021 04:25:31 +0000 (20:25 -0800)
committerJakub Kicinski <[email protected]>
Thu, 7 Jan 2021 00:17:23 +0000 (16:17 -0800)
ptp_ines.c uses devm_platform_ioremap_resource(), which is only
built/available when CONFIG_HAS_IOMEM is enabled.
CONFIG_HAS_IOMEM is not enabled for arch/s390/, so builds on S390
have a build error:

s390-linux-ld: drivers/ptp/ptp_ines.o: in function `ines_ptp_ctrl_probe':
ptp_ines.c:(.text+0x17e6): undefined reference to `devm_platform_ioremap_resource'

Prevent builds of ptp_ines.c when HAS_IOMEM is not set.

Fixes: bad1eaa6ac31 ("ptp: Add a driver for InES time stamping IP core.")
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: kernel test robot <[email protected]>
Link: lore.kernel.org/r/202101031125[email protected]
Acked-by: Richard Cochran <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/ptp/Kconfig

index d2bf05ccbbe20d9aee14288bfe8726c878dba2fb..f2edef0df40f5cebd5e650cfefe5cac046884838 100644 (file)
@@ -79,6 +79,7 @@ config DP83640_PHY
 config PTP_1588_CLOCK_INES
        tristate "ZHAW InES PTP time stamping IP core"
        depends on NETWORK_PHY_TIMESTAMPING
+       depends on HAS_IOMEM
        depends on PHYLIB
        depends on PTP_1588_CLOCK
        help
This page took 0.055757 seconds and 4 git commands to generate.