summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/imx6ul_tsc.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-09-14 10:37:08 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-09-19 11:41:53 -0700
commit3905de62b2624a4574776b3b7ddfa97758b75edc (patch)
tree46b9df9eebaded56d41653aad8740716f20c5e40 /drivers/input/touchscreen/imx6ul_tsc.c
parent6cc527b05847984990a09ef028b2f670bbc72c46 (diff)
downloadtalos-obmc-linux-3905de62b2624a4574776b3b7ddfa97758b75edc.tar.gz
talos-obmc-linux-3905de62b2624a4574776b3b7ddfa97758b75edc.zip
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>
Diffstat (limited to 'drivers/input/touchscreen/imx6ul_tsc.c')
-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 0a96b76f6021..4957d8b6ca59 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;
}
OpenPOWER on IntegriCloud