diff mbox

ds1307: make it possible to share an irq

Message ID 1258323558-16700-1-git-send-email-dbaryshkov@gmail.com
State Accepted, archived
Headers show

Commit Message

Dmitry Eremin-Solenikov Nov. 15, 2009, 10:19 p.m. UTC
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>
---
 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,