summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-09-14 17:37:08 (GMT)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-09-19 18:41:53 (GMT)
commit3905de62b2624a4574776b3b7ddfa97758b75edc (patch)
tree46b9df9eebaded56d41653aad8740716f20c5e40
parent6cc527b05847984990a09ef028b2f670bbc72c46 (diff)
downloadlinux-3905de62b2624a4574776b3b7ddfa97758b75edc.tar.xz
Input: imx6ul_tsc - check for negative return value
We should check for negative values returned by platform_get_irq(). Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/imx6ul_tsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/imx6ul_tsc.c b/drivers/input/touchscreen/imx6ul_tsc.c
index 0a96b76..4957d8b 100644
--- a/drivers/input/touchscreen/imx6ul_tsc.c
+++ b/drivers/input/touchscreen/imx6ul_tsc.c
@@ -416,7 +416,7 @@ static int imx6ul_tsc_probe(struct platform_device *pdev)
}
adc_irq = platform_get_irq(pdev, 1);
- if (adc_irq <= 0) {
+ if (adc_irq < 0) {
dev_err(&pdev->dev, "no adc irq resource?\n");
return adc_irq;
}