projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f16189a
)
drivers/rtc/rtc-vt8500.c: fix return value
author
Sachin Kamat
<
[email protected]
>
Tue, 12 Nov 2013 23:10:28 +0000
(15:10 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 13 Nov 2013 03:09:27 +0000
(12:09 +0900)
Propagate the return value from platform_get_irq() instead of hardcoding.
Signed-off-by: Sachin Kamat <
[email protected]
>
Cc: Jingoo Han <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-vt8500.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-vt8500.c
b/drivers/rtc/rtc-vt8500.c
index c2d6331fc712c7244a87d33ef1e2d6d3cfa7fdca..5be217df1d755810be2944bf0a8c4f2d8c21211f 100644
(file)
--- a/
drivers/rtc/rtc-vt8500.c
+++ b/
drivers/rtc/rtc-vt8500.c
@@
-228,7
+228,7
@@
static int vt8500_rtc_probe(struct platform_device *pdev)
vt8500_rtc->irq_alarm = platform_get_irq(pdev, 0);
if (vt8500_rtc->irq_alarm < 0) {
dev_err(&pdev->dev, "No alarm IRQ resource defined\n");
- return
-ENXIO
;
+ return
vt8500_rtc->irq_alarm
;
}
vt8500_rtc->res = devm_request_mem_region(&pdev->dev,