projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77d8f3c
)
rtc: ingenic: Fix masking of error code
author
Paul Cercueil
<paul@crapouillou.net>
Tue, 5 May 2020 22:13:35 +0000
(
00:13
+0200)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Mon, 11 May 2020 14:35:03 +0000
(16:35 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-jz4740.c
b/drivers/rtc/rtc-jz4740.c
index
3193eb8
..
65e1307
100644
(file)
--- a/
drivers/rtc/rtc-jz4740.c
+++ b/
drivers/rtc/rtc-jz4740.c
@@
-323,7
+323,7
@@
static int jz4740_rtc_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0)
- return
-ENOENT
;
+ return
irq
;
rtc->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(rtc->base))