Explorar o código

rtc: xgene: Set hardware dependency

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>
Jean Delvare %!s(int64=10) %!d(string=hai) anos
pai
achega
fdf8afa188
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/rtc/Kconfig

+ 1 - 0
drivers/rtc/Kconfig

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