]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/rtc/rtc-s3c.c: fix return value in s3c_rtc_probe()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 21 Sep 2012 01:02:21 +0000 (11:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:44 +0000 (18:46 +1000)
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>
drivers/rtc/rtc-s3c.c

index bfbd92c8d1c9d9cba042b494cfde450066320dea..77823d21d31488065b6ca8a12de02d1b5e9f013f 100644 (file)
@@ -476,13 +476,13 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
        s3c_rtc_tickno = platform_get_irq(pdev, 1);
        if (s3c_rtc_tickno < 0) {
                dev_err(&pdev->dev, "no irq for rtc tick\n");
-               return -ENOENT;
+               return s3c_rtc_tickno;
        }
 
        s3c_rtc_alarmno = platform_get_irq(pdev, 0);
        if (s3c_rtc_alarmno < 0) {
                dev_err(&pdev->dev, "no irq for alarm\n");
-               return -ENOENT;
+               return s3c_rtc_alarmno;
        }
 
        pr_debug("s3c2410_rtc: tick irq %d, alarm irq %d\n",