diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-05-02 03:15:18 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-02 03:22:45 -0400 |
commit | f31ad406693f114e57ad4651eb17deb68419c7cb (patch) | |
tree | 70c1dcd6ddbd54be355a8bbae4414dbb5cd45045 /drivers/input | |
parent | 46f49b7a223ac7493e7cf619fb583d11edefc2c2 (diff) |
Input: mpu3050 - set IRQF_ONESHOT when requesting the interrupt
Commit 1c6c695 "genirq: Reject bogus threaded irq requests" requires
that request_threaded_irq() either be passed an explicit handler, or
that IRQF_ONESHOT be set. Set this flag.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/mpu3050.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c index 5403c571b6a5..306f84c2d8fb 100644 --- a/drivers/input/misc/mpu3050.c +++ b/drivers/input/misc/mpu3050.c | |||
@@ -367,7 +367,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client, | |||
367 | 367 | ||
368 | error = request_threaded_irq(client->irq, | 368 | error = request_threaded_irq(client->irq, |
369 | NULL, mpu3050_interrupt_thread, | 369 | NULL, mpu3050_interrupt_thread, |
370 | IRQF_TRIGGER_RISING, | 370 | IRQF_TRIGGER_RISING | IRQF_ONESHOT, |
371 | "mpu3050", sensor); | 371 | "mpu3050", sensor); |
372 | if (error) { | 372 | if (error) { |
373 | dev_err(&client->dev, | 373 | dev_err(&client->dev, |