Skip to content

Commit

Permalink
drivers/rtc/rtc-ds3232.c: 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.  t4240qds
board shares ds3232irq with phy one).  Handle this in driver.

Signed-off-by: Bharat Bhushan <[email protected]>
Cc: Scott Wood <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Bharat Bhushan authored and torvalds committed Apr 3, 2014
1 parent 5fc4bc8 commit a8a15eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-ds3232.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ static int ds3232_probe(struct i2c_client *client,
}

if (client->irq >= 0) {
ret = devm_request_irq(&client->dev, client->irq, ds3232_irq, 0,
"ds3232", client);
ret = devm_request_irq(&client->dev, client->irq, ds3232_irq,
IRQF_SHARED, "ds3232", client);
if (ret) {
dev_err(&client->dev, "unable to request IRQ\n");
}
Expand Down

0 comments on commit a8a15eb

Please sign in to comment.