diff mbox

[7/7] rtc: ds1307 make it possible to share an irq

Message ID 20091118153044.24824.51987.stgit@linux.lan.towertech.it
State Accepted, archived
Headers show

Commit Message

Alessandro Zummo Nov. 18, 2009, 3:30 p.m. UTC
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

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>

patch-name: 38476-rtc-ds1307-share-irq
patch-rev1: 1bb5545a284e34fad8f7cd6ced35fd9ecb3f51d4
patch-rev2: cd931d009c74cbb674d3cb44e4de9fb25ce6c9b8
---
 drivers/rtc/rtc-ds1307.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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,