aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-10-27 15:03:56 -0700
committerColin Cross <ccross@android.com>2011-10-27 15:03:56 -0700
commit60988eca1376ba564e778007cbffabebf05599e1 (patch)
treea188cdd22dc3a9d42955679dc01357bcd0d7e264 /drivers/rtc
parent47d998a7cec61a44b9e0799301039a63fed28280 (diff)
parentbc2e7067af4c1cd074aaec71c2982e2265f7f169 (diff)
downloadkernel_samsung_espresso10-60988eca1376ba564e778007cbffabebf05599e1.zip
kernel_samsung_espresso10-60988eca1376ba564e778007cbffabebf05599e1.tar.gz
kernel_samsung_espresso10-60988eca1376ba564e778007cbffabebf05599e1.tar.bz2
Merge branch 'linux-omap-3.0' into android-omap-3.0
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c
index 3195dbd..eb4c883 100644
--- a/drivers/rtc/interface.c
+++ b/drivers/rtc/interface.c
@@ -708,7 +708,7 @@ int rtc_irq_set_freq(struct rtc_device *rtc, struct rtc_task *task, int freq)
int err = 0;
unsigned long flags;
- if (freq <= 0 || freq > 5000)
+ if (freq <= 0 || freq > RTC_MAX_FREQ)
return -EINVAL;
retry:
spin_lock_irqsave(&rtc->irq_task_lock, flags);