From patchwork Tue Sep 18 06:31:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11492 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D1BED2406D for ; Tue, 18 Sep 2012 06:36:22 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 55A603D08AE3 for ; Tue, 18 Sep 2012 06:36:22 +0000 (UTC) Received: by iafj25 with SMTP id j25so5694509iaf.11 for ; Mon, 17 Sep 2012 23:36:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=h59W/XND6OjM5CUnsdRFR58YQt7bijAGcxd3kOJ99MY=; b=jP/ozwyQ2fth2+q9C3+ocW+Mw88W0snjeSsCBB6M6de0hdGJNTkiQIO+FpXh7+eUuk hSNUgFNK++jzSWRH5zEPJYhGisct/lFJG2xsEfr+LChZBJCVeNRhVwnr3AJ7GB6mDypO m2+eBoyNeGdkT9QoVLtXqVKt2ghOOEnPawbpbY4CLn+/wBxsEAAX9tFNf8eXh5w22MfB GIZ6Xah+3OPuau99esNr4Wg7PFDfajNGjChIOSzFGprinziVPj9vQVhrnwAA4AbGe/go ZpiEWbdPsOYpHW9Vq+8Vo+IyrrIRD0A7RPK1zIzb5cnHR8+aVk8SmvAE9nbqJoDXSPwC uxBA== Received: by 10.50.195.134 with SMTP id ie6mr9431057igc.28.1347950181684; Mon, 17 Sep 2012 23:36:21 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp357421igc; Mon, 17 Sep 2012 23:36:20 -0700 (PDT) Received: by 10.68.130.65 with SMTP id oc1mr27077395pbb.29.1347950180621; Mon, 17 Sep 2012 23:36:20 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id px5si18800883pbb.352.2012.09.17.23.36.20 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 23:36:20 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md12so11915099pbc.37 for ; Mon, 17 Sep 2012 23:36:20 -0700 (PDT) Received: by 10.68.222.42 with SMTP id qj10mr27318133pbc.117.1347950180145; Mon, 17 Sep 2012 23:36:20 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ho7sm8158959pbc.3.2012.09.17.23.36.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Sep 2012 23:36:19 -0700 (PDT) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, sachin.kamat@linaro.org, patches@linaro.org, Andrew Morton Subject: [PATCH] drivers/rtc/rtc-s3c.c: Fix return value in s3c_rtc_probe() Date: Tue, 18 Sep 2012 12:01:40 +0530 Message-Id: <1347949900-608-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQk9X04lGOWWoW2ODQcmcYC9racOD74aAOL/xOulp75HO+JBWmun0XDHjc9NJqgTuo5sc29w 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",