mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 19:50:53 +07:00
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>
This commit is contained in:
parent
5fc4bc8919
commit
a8a15eb19d
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user