summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds1307.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-12-16 01:46:14 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 16:20:00 +0100
commit43d15bcd4b6ba45fc45c99f5ef46e2528fb0dadf (patch)
tree2b11b7826aef4c9cf06639ba3ae80584ce4fc463 /drivers/rtc/rtc-ds1307.c
parentrtc: remove __raw_* accessors from PL031 RTC (diff)
downloadlinux-43d15bcd4b6ba45fc45c99f5ef46e2528fb0dadf.tar.xz
linux-43d15bcd4b6ba45fc45c99f5ef46e2528fb0dadf.zip
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 <dbaryshkov@gmail.com> Signed-off-by: Alessandro Zummo <a.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/rtc-ds1307.c')
-rw-r--r--drivers/rtc/rtc-ds1307.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index eb99ee4fa0f5..8a99da6f2f24 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,