summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2013-05-03 17:29:08 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-05-10 19:04:54 (GMT)
commitbaeb009a3c12b4a4227a93236b7adb4e49c93897 (patch)
tree523764bc66406b90980de49fdaf20cfe23594aa8 /drivers/rtc
parentdf06d0be5ac9d53e6ffcdfbeaf557ca26287b245 (diff)
downloadlinux-fsl-qoriq-baeb009a3c12b4a4227a93236b7adb4e49c93897.tar.xz
i2c/rtc-ds3232: Fix irq for probing
Driver shouldn't request irq when irq = 0. It is returned from parsing device tree. 0 means no interrupt. Signed-off-by: York Sun <yorksun@freescale.com> Change-Id: I6d93228f71733bfefa4bf799833416727da64468 Reviewed-on: http://git.am.freescale.net:8181/2355 Reviewed-by: Zang Tiefei-R61911 <tie-fei.zang@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-ds3232.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c
index db0ca08..8be23d7 100644
--- a/drivers/rtc/rtc-ds3232.c
+++ b/drivers/rtc/rtc-ds3232.c
@@ -419,7 +419,7 @@ static int ds3232_probe(struct i2c_client *client,
goto out_irq;
}
- if (client->irq >= 0) {
+ if (client->irq > 0) {
ret = request_irq(client->irq, ds3232_irq, 0,
"ds3232", client);
if (ret) {