]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ARM: export rtc_lock for nvram driver
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Jun 2011 13:58:30 +0000 (13:58 +0000)
committerArnd Bergmann <arnd@arndb.de>
Sat, 1 Oct 2011 19:08:26 +0000 (21:08 +0200)
The rtc_lock is used by both the nvram and rtc drivers, so
we need to export it if at least one of the two is built,
not just for the rtc driver.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/kernel/time.c

index cb634c3e28e95c6aa6f21ece37341c0e42c9d75b..5a54b95d6bd29ddc2c200b0943c4c0e37389abe8 100644 (file)
  */
 static struct sys_timer *system_timer;
 
-#if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE)
+#if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) || \
+    defined(CONFIG_NVRAM) || defined(CONFIG_NVRAM_MODULE)
 /* this needs a better home */
 DEFINE_SPINLOCK(rtc_lock);
-
-#ifdef CONFIG_RTC_DRV_CMOS_MODULE
 EXPORT_SYMBOL(rtc_lock);
-#endif
 #endif /* pc-style 'CMOS' RTC support */
 
 /* change this if you have some constant time drift */