Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] 4098/1: ARM: rtc_lock only used with rtc_cmos

Fix build glitches on ARM ... the only user of "rtc_lock" today is the
optional PC-style "CMOS" RTC driver, the legacy SA1100 RTC driver is
not even in the tree any more.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

David Brownell and committed by
Russell King
9dd34948 c587e4a6

+3 -1
+3 -1
arch/arm/kernel/time.c
··· 40 40 */ 41 41 struct sys_timer *system_timer; 42 42 43 + #if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE) 43 44 /* this needs a better home */ 44 45 DEFINE_SPINLOCK(rtc_lock); 45 46 46 - #ifdef CONFIG_SA1100_RTC_MODULE 47 + #ifdef CONFIG_RTC_DRV_CMOS_MODULE 47 48 EXPORT_SYMBOL(rtc_lock); 48 49 #endif 50 + #endif /* pc-style 'CMOS' RTC support */ 49 51 50 52 /* change this if you have some constant time drift */ 51 53 #define USECS_PER_JIFFY (1000000/HZ)