aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-10-04 20:14:14 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:05:04 -0400
commit1ee8c0ca2a6aef9af4b78f860cc690f33fc8f287 (patch)
treece6f8e0782378ab79269b8761e36f27f17902825 /drivers/rtc
parent4c24e29e65843ed912c14cdc293ed922e33efdcc (diff)
drivers/rtc/rtc-s3c.c: fix return value in s3c_rtc_probe()
Return the value returned by platform_get_irq() instead of -ENOENT; Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-s3c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c
index bfbd92c8d1c..77823d21d31 100644
--- a/drivers/rtc/rtc-s3c.c
+++ b/drivers/rtc/rtc-s3c.c
@@ -476,13 +476,13 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
476 s3c_rtc_tickno = platform_get_irq(pdev, 1); 476 s3c_rtc_tickno = platform_get_irq(pdev, 1);
477 if (s3c_rtc_tickno < 0) { 477 if (s3c_rtc_tickno < 0) {
478 dev_err(&pdev->dev, "no irq for rtc tick\n"); 478 dev_err(&pdev->dev, "no irq for rtc tick\n");
479 return -ENOENT; 479 return s3c_rtc_tickno;
480 } 480 }
481 481
482 s3c_rtc_alarmno = platform_get_irq(pdev, 0); 482 s3c_rtc_alarmno = platform_get_irq(pdev, 0);
483 if (s3c_rtc_alarmno < 0) { 483 if (s3c_rtc_alarmno < 0) {
484 dev_err(&pdev->dev, "no irq for alarm\n"); 484 dev_err(&pdev->dev, "no irq for alarm\n");
485 return -ENOENT; 485 return s3c_rtc_alarmno;
486 } 486 }
487 487
488 pr_debug("s3c2410_rtc: tick irq %d, alarm irq %d\n", 488 pr_debug("s3c2410_rtc: tick irq %d, alarm irq %d\n",