From: Sachin Kamat Date: Fri, 21 Sep 2012 01:02:21 +0000 (+1000) Subject: drivers/rtc/rtc-s3c.c: fix return value in s3c_rtc_probe() X-Git-Tag: next-20120925~1^2~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f6fb145e6ad24fad5d2ef601e0e874fdd0a5936f;p=karo-tx-linux.git 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 Cc: Alessandro Zummo Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index bfbd92c8d1c9..77823d21d314 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",