summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorBharat Bhushan <Bharat.Bhushan@freescale.com>2014-02-14 03:56:53 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-02-18 20:20:16 (GMT)
commit33e897f5123f7a656ec847b1870402410fd3cd9e (patch)
treeae6f9600a520577598b8141163cc2c265e117bd3 /drivers/rtc
parentfd2ac0f677998a95fd813ef97f7aeaededad31bc (diff)
downloadlinux-fsl-qoriq-33e897f5123f7a656ec847b1870402410fd3cd9e.tar.xz
rtc: ds3232 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> Change-Id: Ifdec5e78afaa3228ef20870110c98329731075d7 Reviewed-on: http://git.am.freescale.net:8181/8788 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Dongsheng Wang <dongsheng.wang@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/rtc')
-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 ae8a28e..dfd810f 100644
--- a/drivers/rtc/rtc-ds3232.c
+++ b/drivers/rtc/rtc-ds3232.c
@@ -419,8 +419,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");
return ret;