diff options
-rw-r--r-- | drivers/input/touchscreen/ti_am335x_tsc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c index 2ba77039ab91..0e9f02aeae6b 100644 --- a/drivers/input/touchscreen/ti_am335x_tsc.c +++ b/drivers/input/touchscreen/ti_am335x_tsc.c | |||
@@ -314,10 +314,12 @@ static irqreturn_t titsc_irq(int irq, void *dev) | |||
314 | titsc_writel(ts_dev, REG_IRQCLR, IRQENB_HW_PEN); | 314 | titsc_writel(ts_dev, REG_IRQCLR, IRQENB_HW_PEN); |
315 | } | 315 | } |
316 | 316 | ||
317 | titsc_writel(ts_dev, REG_IRQSTATUS, irqclr); | 317 | if (irqclr) { |
318 | 318 | titsc_writel(ts_dev, REG_IRQSTATUS, irqclr); | |
319 | am335x_tsc_se_update(ts_dev->mfd_tscadc); | 319 | am335x_tsc_se_update(ts_dev->mfd_tscadc); |
320 | return IRQ_HANDLED; | 320 | return IRQ_HANDLED; |
321 | } | ||
322 | return IRQ_NONE; | ||
321 | } | 323 | } |
322 | 324 | ||
323 | static int titsc_parse_dt(struct platform_device *pdev, | 325 | static int titsc_parse_dt(struct platform_device *pdev, |