]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: Fix up SH-3 and SH-4 driver dependencies.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 18 Jul 2007 09:55:25 +0000 (18:55 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 20 Jul 2007 03:18:20 +0000 (12:18 +0900)
Both shwdt and rtc-sh are only supported on SH-3 and SH-4 at
the moment, don't allow them to break the SH-2 and SH-5 (sh64)
builds.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/char/watchdog/Kconfig
drivers/rtc/Kconfig

index 2f48ba329961ae6eb7537609709e72e412d0aa8d..ad5cc5f6862fdff08746a91d5068dad490124c8b 100644 (file)
@@ -602,7 +602,7 @@ config ZVM_WATCHDOG
 
 config SH_WDT
        tristate "SuperH Watchdog"
-       depends on SUPERH
+       depends on SUPERH && (CPU_SH3 || CPU_SH4)
        help
          This driver adds watchdog support for the integrated watchdog in the
          SuperH processors. If you have one of these processors and wish
index cea401feb0f3151a7e5e032ce494621ba3ef3c80..35f34665e3c44f06e01c103226462023cdaa5aab 100644 (file)
@@ -394,7 +394,7 @@ config RTC_DRV_SA1100
 
 config RTC_DRV_SH
        tristate "SuperH On-Chip RTC"
-       depends on RTC_CLASS && SUPERH
+       depends on RTC_CLASS && SUPERH && (CPU_SH3 || CPU_SH4)
        help
          Say Y here to enable support for the on-chip RTC found in
          most SuperH processors.