diff options
| author | Jonathan Cameron <[email protected]> | 2009-01-06 22:42:12 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-01-06 23:59:24 +0000 |
| commit | 5d2a50371ddf127afa782ad3147469be8e9bd69f (patch) | |
| tree | bc7b7032512c17f493e5f656044c79c17952f517 /drivers/rtc/interface.c | |
| parent | rtc: bunch of drivers: fix 'no irq' case handing (diff) | |
| download | kernel-5d2a50371ddf127afa782ad3147469be8e9bd69f.tar.gz kernel-5d2a50371ddf127afa782ad3147469be8e9bd69f.zip | |
rtc: move power of 2 periodic frequency check down into drivers
Move the power of 2 check on frequencies down into individual rtc drivers
This is to allow for non power of 2 real time clock periodic interrupts
such as those on the pxa27x to be found in the new pxa27x-rtc driver
Signed-off-by: Jonathan Cameron <[email protected]>
Signed-off-by: Alessandro Zummo <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/interface.c')
| -rw-r--r-- | drivers/rtc/interface.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index 43276f29d636..50482d1321e8 100644 --- a/drivers/rtc/interface.c +++ b/drivers/rtc/interface.c @@ -504,9 +504,6 @@ int rtc_irq_set_freq(struct rtc_device *rtc, struct rtc_task *task, int freq) if (rtc->ops->irq_set_freq == NULL) return -ENXIO; - if (!is_power_of_2(freq)) - return -EINVAL; - spin_lock_irqsave(&rtc->irq_task_lock, flags); if (rtc->irq_task != NULL && task == NULL) err = -EBUSY; |
