rtc: xgene: Set hardware dependency
authorJean Delvare <jdelvare@suse.de>
Wed, 6 May 2015 07:24:42 +0000 (09:24 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 24 Jun 2015 23:13:34 +0000 (01:13 +0200)
The rtc-xgene driver is only useful on X-Gene SoC.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Iyappan Subramanian <isubramanian@apm.com>
Cc: Keyur Chudgar <kchudgar@apm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig

index 0fe4ad8..b957b4f 100644 (file)
@@ -1533,6 +1533,7 @@ config RTC_DRV_MOXART
 config RTC_DRV_XGENE
        tristate "APM X-Gene RTC"
        depends on HAS_IOMEM
+       depends on ARCH_XGENE || COMPILE_TEST
        help
          If you say yes here you get support for the APM X-Gene SoC real time
          clock.