From: Mike Frysinger Date: Wed, 6 Feb 2008 09:38:47 +0000 (-0800) Subject: Blackfin RTC driver: we pass in a (struct device*) to the irq handler, not a (struct... X-Git-Tag: v2.6.25-rc1~615 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7827d889ab9c7275668f2ce7978b317ca1e11a6;p=linux-2.6 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 Signed-off-by: Bryan Wu Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-bfin.c b/drivers/rtc/rtc-bfin.c index 303ed6e91d..2a801f237c 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) 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;