From: Dmitry Eremin-Solenikov Date: Wed, 16 Dec 2009 00:46:14 +0000 (-0800) Subject: rtc: ds1307 make it possible to share an irq X-Git-Tag: v3.0~6495^2~140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43d15bcd4b6ba45fc45c99f5ef46e2528fb0dadf;p=platform%2Fkernel%2Flinux-amlogic.git rtc: ds1307 make it possible to share an irq It's possible to have RTC irq shared with other device (e.g. mpc8349e-mitx board shares ds1339 irq with phy one). Handle this in driver. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index eb99ee4..8a99da6 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -874,7 +874,7 @@ read_rtc: } if (want_irq) { - err = request_irq(client->irq, ds1307_irq, 0, + err = request_irq(client->irq, ds1307_irq, IRQF_SHARED, ds1307->rtc->name, client); if (err) { dev_err(&client->dev,