From: Fabio Estevam Date: Mon, 14 Sep 2015 17:37:08 +0000 (-0700) Subject: Input: imx6ul_tsc - check for negative return value X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3905de62b2624a4574776b3b7ddfa97758b75edc;p=openwrt%2Fstaging%2Fblogic.git Input: imx6ul_tsc - check for negative return value We should check for negative values returned by platform_get_irq(). Signed-off-by: Fabio Estevam Signed-off-by: Dmitry Torokhov --- 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; }