Input: mpu3050 - set IRQF_ONESHOT when requesting the interrupt
authorStephen Warren <swarren@nvidia.com>
Wed, 2 May 2012 07:15:18 +0000 (00:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 May 2012 07:22:45 +0000 (00:22 -0700)
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>
drivers/input/misc/mpu3050.c

index 5403c571b6a590687394e9cd25185dd66c74a7b8..306f84c2d8fb501bf8e30f6bf743f52fbb3c770b 100644 (file)
@@ -367,7 +367,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client,
 
        error = request_threaded_irq(client->irq,
                                     NULL, mpu3050_interrupt_thread,
-                                    IRQF_TRIGGER_RISING,
+                                    IRQF_TRIGGER_RISING | IRQF_ONESHOT,
                                     "mpu3050", sensor);
        if (error) {
                dev_err(&client->dev,