Skip to content

Commit

Permalink
rtc: ds1307 make it possible to share an irq
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
lumag authored and torvalds committed Dec 16, 2009
1 parent 2934d6a commit 43d15bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-ds1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ static int __devinit ds1307_probe(struct i2c_client *client,
}

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,
Expand Down

0 comments on commit 43d15bc

Please sign in to comment.