diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2008-08-05 16:01:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-05 17:33:47 -0400 |
commit | dd279f6127c0f64dfb0055bc0adb97a284a08df3 (patch) | |
tree | f35b3fdf6702c90d15d1c1633c22af27a02aa56a /drivers/rtc/rtc-bfin.c | |
parent | c69ad71bcdecbaab82cfacb1dc967bd7fd967a3b (diff) |
blackfin RTC driver: if we dont define irq_set_freq, the common rtc-dev layer will give us the same behavior of returning ENOTTY
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-bfin.c')
-rw-r--r-- | drivers/rtc/rtc-bfin.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index 8624f55d0560..48ada599477b 100644 --- a/drivers/rtc/rtc-bfin.c +++ b/drivers/rtc/rtc-bfin.c | |||
@@ -381,20 +381,6 @@ static int bfin_rtc_proc(struct device *dev, struct seq_file *seq) | |||
381 | #undef yesno | 381 | #undef yesno |
382 | } | 382 | } |
383 | 383 | ||
384 | /** | ||
385 | * bfin_irq_set_freq - make sure hardware supports requested freq | ||
386 | * @dev: pointer to RTC device structure | ||
387 | * @freq: requested frequency rate | ||
388 | * | ||
389 | * The Blackfin RTC can only generate periodic events at 1 per | ||
390 | * second (1 Hz), so reject any attempt at changing it. | ||
391 | */ | ||
392 | static int bfin_irq_set_freq(struct device *dev, int freq) | ||
393 | { | ||
394 | dev_dbg_stamp(dev); | ||
395 | return -ENOTTY; | ||
396 | } | ||
397 | |||
398 | static struct rtc_class_ops bfin_rtc_ops = { | 384 | static struct rtc_class_ops bfin_rtc_ops = { |
399 | .open = bfin_rtc_open, | 385 | .open = bfin_rtc_open, |
400 | .release = bfin_rtc_release, | 386 | .release = bfin_rtc_release, |
@@ -404,7 +390,6 @@ static struct rtc_class_ops bfin_rtc_ops = { | |||
404 | .read_alarm = bfin_rtc_read_alarm, | 390 | .read_alarm = bfin_rtc_read_alarm, |
405 | .set_alarm = bfin_rtc_set_alarm, | 391 | .set_alarm = bfin_rtc_set_alarm, |
406 | .proc = bfin_rtc_proc, | 392 | .proc = bfin_rtc_proc, |
407 | .irq_set_freq = bfin_irq_set_freq, | ||
408 | }; | 393 | }; |
409 | 394 | ||
410 | static int __devinit bfin_rtc_probe(struct platform_device *pdev) | 395 | static int __devinit bfin_rtc_probe(struct platform_device *pdev) |