Commit d7827d88 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

Blackfin RTC driver: we pass in a (struct device*) to the irq handler, not a...

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: default avatarMike Frysinger <michael.frysinger@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
Acked-by: default avatarAlessandro Zummo <alessandro.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5c236343
...@@ -144,8 +144,8 @@ static void rtc_bfin_reset(struct bfin_rtc *rtc) ...@@ -144,8 +144,8 @@ static void rtc_bfin_reset(struct bfin_rtc *rtc)
static irqreturn_t bfin_rtc_interrupt(int irq, void *dev_id) static irqreturn_t bfin_rtc_interrupt(int irq, void *dev_id)
{ {
struct platform_device *pdev = to_platform_device(dev_id); struct device *dev = dev_id;
struct bfin_rtc *rtc = platform_get_drvdata(pdev); struct bfin_rtc *rtc = dev_get_drvdata(dev);
unsigned long events = 0; unsigned long events = 0;
u16 rtc_istat; u16 rtc_istat;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment