Commit a8a15eb1 authored by Bharat Bhushan's avatar Bharat Bhushan Committed by Linus Torvalds

drivers/rtc/rtc-ds3232.c: make it possible to share an irq

It's possible to have RTC irq shared with other device (e.g.  t4240qds
board shares ds3232irq with phy one).  Handle this in driver.
Signed-off-by: default avatarBharat Bhushan <Bharat.Bhushan@freescale.com>
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5fc4bc89
...@@ -418,8 +418,8 @@ static int ds3232_probe(struct i2c_client *client, ...@@ -418,8 +418,8 @@ static int ds3232_probe(struct i2c_client *client,
} }
if (client->irq >= 0) { if (client->irq >= 0) {
ret = devm_request_irq(&client->dev, client->irq, ds3232_irq, 0, ret = devm_request_irq(&client->dev, client->irq, ds3232_irq,
"ds3232", client); IRQF_SHARED, "ds3232", client);
if (ret) { if (ret) {
dev_err(&client->dev, "unable to request IRQ\n"); dev_err(&client->dev, "unable to request IRQ\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment