aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds3232.c
diff options
context:
space:
mode:
authorBharat Bhushan <[email protected]>2014-04-03 21:50:04 +0000
committerLinus Torvalds <[email protected]>2014-04-03 23:21:21 +0000
commita8a15eb19d885bec172c396178c148264987922f (patch)
treed125af9239cd914d4f3836e6c67266f4978785e9 /drivers/rtc/rtc-ds3232.c
parentarch/arm/boot/dts/sun4i-a10.dtsi: convert to the new RTC compatibles (diff)
downloadkernel-a8a15eb19d885bec172c396178c148264987922f.tar.gz
kernel-a8a15eb19d885bec172c396178c148264987922f.zip
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 <[email protected]> Cc: Scott Wood <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-ds3232.c')
-rw-r--r--drivers/rtc/rtc-ds3232.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c
index 15497c578af5..813c6aa70d3d 100644
--- a/drivers/rtc/rtc-ds3232.c
+++ b/drivers/rtc/rtc-ds3232.c
@@ -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");
}