rtc: ingenic: Fix masking of error code
authorPaul Cercueil <paul@crapouillou.net>
Tue, 5 May 2020 22:13:35 +0000 (00:13 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 11 May 2020 14:35:03 +0000 (16:35 +0200)
commit15eeadd801c0ea65c44c01f243f45097ac5970a8
treeece9181800317e000c15aaefe9886ced561a4546
parent77d8f3c1226b2ae60b989568a102dd79a8b379f0
rtc: ingenic: Fix masking of error code

The code was returning -ENOENT on any error of platform_get_irq(), even
if it returned a different error.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200505221336.222313-6-paul@crapouillou.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-jz4740.c