Skip to content

Commit

Permalink
rtc: rtc-sh: Fix rtc_dev pointer for rtc_update_irq().
Browse files Browse the repository at this point in the history
When the rtc_update_irq() callsites stopped passing in the
class_dev, the rtc_dev references weren't fixed. Fix it up,
so we pass in the proper pointer.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
pmundt committed May 9, 2007
1 parent b118ca5 commit a361a68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/rtc/rtc-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static irqreturn_t sh_rtc_interrupt(int irq, void *dev_id)

writeb(tmp, rtc->regbase + RCR1);

rtc_update_irq(&rtc->rtc_dev, 1, events);
rtc_update_irq(rtc->rtc_dev, 1, events);

spin_unlock(&rtc->lock);

Expand Down Expand Up @@ -139,7 +139,7 @@ static irqreturn_t sh_rtc_alarm(int irq, void *dev_id)

rtc->rearm_aie = 1;

rtc_update_irq(&rtc->rtc_dev, 1, events);
rtc_update_irq(rtc->rtc_dev, 1, events);
}

spin_unlock(&rtc->lock);
Expand All @@ -153,7 +153,7 @@ static irqreturn_t sh_rtc_periodic(int irq, void *dev_id)

spin_lock(&rtc->lock);

rtc_update_irq(&rtc->rtc_dev, 1, RTC_PF | RTC_IRQF);
rtc_update_irq(rtc->rtc_dev, 1, RTC_PF | RTC_IRQF);

spin_unlock(&rtc->lock);

Expand Down

0 comments on commit a361a68

Please sign in to comment.