From patchwork Tue Sep 18 06:31:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: drivers/rtc/rtc-s3c.c: Fix return value in s3c_rtc_probe() Date: Mon, 17 Sep 2012 20:31:40 -0000 From: Sachin Kamat X-Patchwork-Id: 184625 Message-Id: <1347949900-608-1-git-send-email-sachin.kamat@linaro.org> To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, sachin.kamat@linaro.org, patches@linaro.org, Andrew Morton Return the value returned by platform_get_irq() instead of -ENOENT; Cc: Andrew Morton Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-s3c.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index bfbd92c..77823d2 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) 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",