watchdog: RDC321X_WDT always depends on PCI
authorGuenter Roeck <linux@roeck-us.net>
Sun, 29 Jan 2017 19:12:08 +0000 (11:12 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Feb 2017 22:00:23 +0000 (14:00 -0800)
Without this dependency, platforms not supporting PCI (such as m68k)
report the following build warning when building allmodconfig
or allyesconfig.

drivers/watchdog/rdc321x_wdt.c: In function 'rdc321x_wdt_ioctl':
./arch/m68k/include/asm/uaccess_mm.h:61:1: warning:
'value' may be used uninitialized in this function

Fixes: f4c3de659054 ("watchdog: Enable COMPILE_TEST where possible")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/Kconfig

index ba116f8bf3ee1b1e94f1b0f0b4030b5016ae1153..89b50f6d258f1d9b1054e90de3489957798e3cb3 100644 (file)
@@ -1120,6 +1120,7 @@ config NV_TCO
 config RDC321X_WDT
        tristate "RDC R-321x SoC watchdog"
        depends on X86_RDC321X || COMPILE_TEST
+       depends on PCI
        help
          This is the driver for the built in hardware watchdog
          in the RDC R-321x SoC.