提交 1164ec1a 编写于 作者: D David Brownell 提交者: Dmitry Torokhov

Input: gpio_keys - irq handling cleanup

Cleanup IRQ handling in gpio_keys:  bail after handling the IRQ, and
report IRQ_NONE if we never handle it.
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 9f9439e9
......@@ -43,10 +43,11 @@ static irqreturn_t gpio_keys_isr(int irq, void *dev_id)
input_event(input, type, button->code, !!state);
input_sync(input);
return IRQ_HANDLED;
}
}
return IRQ_HANDLED;
return IRQ_NONE;
}
static int __devinit gpio_keys_probe(struct platform_device *pdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册