Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232935
b: refs/heads/master
c: 55835eb
h: refs/heads/master
i:
  232933: 6ab0fd8
  232931: 516696d
  232927: 4f91775
v: v3
  • Loading branch information
Ingo Molnar committed Feb 6, 2011
1 parent 535c4f0 commit 1989b34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f266a5110d453b7987194460ac7edd31f1a5426c
refs/heads/master: 55835eb62fad1253c9e657a667549945e4be9759
1 change: 1 addition & 0 deletions trunk/drivers/rtc/class.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ struct rtc_device *rtc_device_register(const char *name, struct device *dev,
rtc->id = id;
rtc->ops = ops;
rtc->owner = owner;
rtc->irq_freq = 1;
rtc->max_user_freq = 64;
rtc->dev.parent = dev;
rtc->dev.class = rtc_class;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/rtc/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ int rtc_irq_set_freq(struct rtc_device *rtc, struct rtc_task *task, int freq)
int err = 0;
unsigned long flags;

if (freq <= 0)
return -EINVAL;

spin_lock_irqsave(&rtc->irq_task_lock, flags);
if (rtc->irq_task != NULL && task == NULL)
err = -EBUSY;
Expand Down

0 comments on commit 1989b34

Please sign in to comment.