Skip to content

Commit a8a15eb

Browse files
Bharat Bhushantorvalds
authored andcommitted
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: Bharat Bhushan <Bharat.Bhushan@freescale.com> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 5fc4bc8 commit a8a15eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/rtc/rtc-ds3232.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ static int ds3232_probe(struct i2c_client *client,
418418
}
419419

420420
if (client->irq >= 0) {
421-
ret = devm_request_irq(&client->dev, client->irq, ds3232_irq, 0,
422-
"ds3232", client);
421+
ret = devm_request_irq(&client->dev, client->irq, ds3232_irq,
422+
IRQF_SHARED, "ds3232", client);
423423
if (ret) {
424424
dev_err(&client->dev, "unable to request IRQ\n");
425425
}

0 commit comments

Comments
 (0)