Skip to content

Commit

Permalink
Blackfin RTC driver: we pass in a (struct device*) to the irq handler…
Browse files Browse the repository at this point in the history
…, not a (struct platform_device*), so fix the irq handler

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Acked-by: Alessandro Zummo <alessandro.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Mike Frysinger authored and Linus Torvalds committed Feb 6, 2008
1 parent 5c23634 commit d7827d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-bfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ static void rtc_bfin_reset(struct bfin_rtc *rtc)

static irqreturn_t bfin_rtc_interrupt(int irq, void *dev_id)
{
struct platform_device *pdev = to_platform_device(dev_id);
struct bfin_rtc *rtc = platform_get_drvdata(pdev);
struct device *dev = dev_id;
struct bfin_rtc *rtc = dev_get_drvdata(dev);
unsigned long events = 0;
u16 rtc_istat;

Expand Down

0 comments on commit d7827d8

Please sign in to comment.