Message ID | 20190816083830.19553-2-jiada_wang@mentor.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers | show |
Series | None | expand |
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 40263ef79e8e..64a1a6815d56 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1631,9 +1631,9 @@ static irqreturn_t mxt_interrupt(int irq, void *dev_id) struct mxt_data *data = dev_id; int ret; - complete(&data->chg_completion); - if (data->in_bootloader) { + complete(&data->chg_completion); + if (data->flash && &data->flash->work) cancel_delayed_work_sync(&data->flash->work);