diff options
author | Jiasheng Jiang <[email protected]> | 2022-03-03 16:50:30 +0800 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2022-03-23 19:58:38 +0100 |
commit | 43f0269b6b89c1eec4ef83c48035608f4dcdd886 (patch) | |
tree | 311dc56aa02b34ebd7c9b3094baf529fcae2b59e /lib/parser.c | |
parent | 8a93720329d4d24c352b035e0532f756c8ecf546 (diff) |
rtc: wm8350: Handle error for wm8350_register_irq
As the potential failure of the wm8350_register_irq(),
it should be better to check it and return error if fails.
Also, it need not free 'wm_rtc->rtc' since it will be freed
automatically.
Fixes: 077eaf5b40ec ("rtc: rtc-wm8350: add support for WM8350 RTC")
Signed-off-by: Jiasheng Jiang <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions