提交 0a966c07 编写于 作者: A Akinobu Mita 提交者: Alexandre Belloni

rtc: rx8025: fix irq handler registration

When IRQ line for this chips is connected, devm_request_threaded_irq()
refuses to register irq handler with the following message.

genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq
Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
上级 8124c711
...@@ -538,8 +538,9 @@ static int rx8025_probe(struct i2c_client *client, ...@@ -538,8 +538,9 @@ static int rx8025_probe(struct i2c_client *client,
if (client->irq > 0) { if (client->irq > 0) {
dev_info(&client->dev, "IRQ %d supplied\n", client->irq); dev_info(&client->dev, "IRQ %d supplied\n", client->irq);
err = devm_request_threaded_irq(&client->dev, client->irq, NULL, err = devm_request_threaded_irq(&client->dev, client->irq, NULL,
rx8025_handle_irq, 0, "rx8025", rx8025_handle_irq,
client); IRQF_ONESHOT,
"rx8025", client);
if (err) { if (err) {
dev_err(&client->dev, "unable to request IRQ, alarms disabled\n"); dev_err(&client->dev, "unable to request IRQ, alarms disabled\n");
client->irq = 0; client->irq = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册