input: touchscreen: request threaded-only IRQs with IRQF_ONESHOT
Threaded IRQs without primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail. This patch adds the IRQF_ONESHOT to the focaltech touchscreen driver where it is missing. This patch is propagated from 3.18 kernel 'commit 4e8b58e99bf7 ("input: touchscreen: request threaded-only IRQs with IRQF_ONESHOT")' Change-Id: I429f48126bd5d28c6dbf6ba846175d5e643dd436 Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
This commit is contained in:
parent
6b5ef7a553
commit
13954554dc
1 changed files with 3 additions and 2 deletions
|
@ -1542,8 +1542,9 @@ static int ft5x06_ts_probe(struct i2c_client *client,
|
|||
data->family_id = pdata->family_id;
|
||||
|
||||
err = request_threaded_irq(client->irq, NULL,
|
||||
ft5x06_ts_interrupt, pdata->irqflags,
|
||||
client->dev.driver->name, data);
|
||||
ft5x06_ts_interrupt,
|
||||
pdata->irqflags | IRQF_ONESHOT,
|
||||
client->dev.driver->name, data);
|
||||
if (err) {
|
||||
dev_err(&client->dev, "request irq failed\n");
|
||||
goto free_reset_gpio;
|
||||
|
|
Loading…
Add table
Reference in a new issue