diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2008-02-06 04:38:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 13:41:13 -0500 |
commit | d7827d889ab9c7275668f2ce7978b317ca1e11a6 (patch) | |
tree | 00108b182a73498a9f51c11c2bcbb011da44eec3 /drivers/rtc | |
parent | 5c236343eb558e3cf3bbffd0688f5518f8b9028a (diff) |
Blackfin RTC driver: we pass in a (struct device*) to the irq handler, 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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-bfin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index 303ed6e91d3f..2a801f237c5d 100644 --- a/drivers/rtc/rtc-bfin.c +++ b/drivers/rtc/rtc-bfin.c | |||
@@ -144,8 +144,8 @@ static void rtc_bfin_reset(struct bfin_rtc *rtc) | |||
144 | 144 | ||
145 | static irqreturn_t bfin_rtc_interrupt(int irq, void *dev_id) | 145 | static irqreturn_t bfin_rtc_interrupt(int irq, void *dev_id) |
146 | { | 146 | { |
147 | struct platform_device *pdev = to_platform_device(dev_id); | 147 | struct device *dev = dev_id; |
148 | struct bfin_rtc *rtc = platform_get_drvdata(pdev); | 148 | struct bfin_rtc *rtc = dev_get_drvdata(dev); |
149 | unsigned long events = 0; | 149 | unsigned long events = 0; |
150 | u16 rtc_istat; | 150 | u16 rtc_istat; |
151 | 151 | ||