]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
watchdog: sirfsoc: Add missing dependency on HAS_IOMEM
authorGuenter Roeck <linux@roeck-us.net>
Sun, 8 Nov 2020 16:25:50 +0000 (08:25 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:47:01 +0000 (13:47 +0100)
[ Upstream commit 8ae2511112d2e18bc7d324b77f965d34083a25a2 ]

If HAS_IOMEM is not defined and SIRFSOC_WATCHDOG is enabled,
the build fails with the following error.

drivers/watchdog/sirfsoc_wdt.o: in function `sirfsoc_wdt_probe':
sirfsoc_wdt.c:(.text+0x112):
undefined reference to `devm_platform_ioremap_resource'

Reported-by: Necip Fazil Yildiran <fazilyildiran@gmail.com>
Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible")
Link: https://lore.kernel.org/r/20201108162550.27660-2-linux@roeck-us.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/Kconfig

index fa15a683ae2d4d299eea9f1ea6f2d8981d314b6b..529b0527bf2e23b9465aee72d7fc10b2467a3e19 100644 (file)
@@ -620,6 +620,7 @@ config MOXART_WDT
 
 config SIRFSOC_WATCHDOG
        tristate "SiRFSOC watchdog"
+       depends on HAS_IOMEM
        depends on ARCH_SIRF || COMPILE_TEST
        select WATCHDOG_CORE
        default y