Skip to content

Commit

Permalink
Input: mpu3050 - set IRQF_ONESHOT when requesting the interrupt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Warren authored and Dmitry Torokhov committed May 2, 2012
1 parent 46f49b7 commit f31ad40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/mpu3050.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f31ad40

Please sign in to comment.