提交 f31ad406 编写于 作者: S Stephen Warren 提交者: Dmitry Torokhov

Input: mpu3050 - set IRQF_ONESHOT when requesting the interrupt

Commit 1c6c6952 "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: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 46f49b7a
...@@ -367,7 +367,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client, ...@@ -367,7 +367,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client,
error = request_threaded_irq(client->irq, error = request_threaded_irq(client->irq,
NULL, mpu3050_interrupt_thread, NULL, mpu3050_interrupt_thread,
IRQF_TRIGGER_RISING, IRQF_TRIGGER_RISING | IRQF_ONESHOT,
"mpu3050", sensor); "mpu3050", sensor);
if (error) { if (error) {
dev_err(&client->dev, dev_err(&client->dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册