drivers/rtc/Kconfig: add hardware dependency to rtc-moxart
authorJean Delvare <jdelvare@suse.de>
Fri, 8 Aug 2014 21:20:05 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:19 +0000 (15:57 -0700)
The rtc-moxart driver is only useful on MOXA ART systems so it should
depend on ARCH_MOXART as all other MOXA ART drivers already do.  Add
COMPILE_TEST as an alternative to allow for build testing on other
systems.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Jonas Jensen <jonas.jensen@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/Kconfig

index 2d99bf6..a672dd1 100644 (file)
@@ -1349,6 +1349,7 @@ config RTC_DRV_SIRFSOC
 
 config RTC_DRV_MOXART
        tristate "MOXA ART RTC"
+       depends on ARCH_MOXART || COMPILE_TEST
        help
           If you say yes here you get support for the MOXA ART
           RTC module.