提交 8a06513d 编写于 作者: A Alexandre Belloni

rtc: rx8025: continue without alarm when irq request fails

Instead of bailing out, disable alarms and continue when
devm_request_threaded_irq() fails. This allows to still provide some
functionality.
Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
上级 fd9061fb
......@@ -533,8 +533,8 @@ static int rx8025_probe(struct i2c_client *client,
rx8025_handle_irq, 0, "rx8025",
client);
if (err) {
dev_err(&client->dev, "unable to request IRQ\n");
return err;
dev_err(&client->dev, "unable to request IRQ, alarms disabled\n");
client->irq = 0;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册