Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabio Estevam and committed by
Dmitry Torokhov
3905de62 6cc527b0

+1 -1
+1 -1
drivers/input/touchscreen/imx6ul_tsc.c
··· 416 416 } 417 417 418 418 adc_irq = platform_get_irq(pdev, 1); 419 - if (adc_irq <= 0) { 419 + if (adc_irq < 0) { 420 420 dev_err(&pdev->dev, "no adc irq resource?\n"); 421 421 return adc_irq; 422 422 }