aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBharat Bhushan <r65777@freescale.com>2014-04-03 14:50:04 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 16:21:21 -0700
commita8a15eb19d885bec172c396178c148264987922f (patch)
treed125af9239cd914d4f3836e6c67266f4978785e9 /drivers
parentarch/arm/boot/dts/sun4i-a10.dtsi: convert to the new RTC compatibles (diff)
downloadlinux-dev-a8a15eb19d885bec172c396178c148264987922f.tar.xz
linux-dev-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 <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>
Diffstat (limited to 'drivers')
-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");
}