From patchwork Fri Sep 6 11:33:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 273156 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oa0-x23a.google.com (mail-oa0-x23a.google.com [IPv6:2607:f8b0:4003:c02::23a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id C7E382C00F9 for ; Fri, 6 Sep 2013 21:51:46 +1000 (EST) Received: by mail-oa0-f58.google.com with SMTP id n12sf692330oag.3 for ; Fri, 06 Sep 2013 04:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=KbBiGRC++xsujIlgApS9DZojo72SJ1THgTMsoEWnhRE=; b=LPqwZwUgWa6yQ7PpKuBbhmn6uv0cMIpzg3eoMsZysjz3zZWjJqsRylADvHDwaXUvKt dRgbs0if5So9QpDlVaw16XAqsBYlxc5ppGPoEZZEljHSLUhkM2oIL6Arqj3MRQiXhswP ElJNWkCMQDk+JoUfDxmRdb+wGsPtHl7oeO93WJCx8tIZof+trdpn1BuZaahgGDD3twl+ nbuZfXwzNoEVVQ6dHuRzgWlavvtY6wOSzmEZHGk+A7b6q/vP0xXzQzIlbQs9mxo89IMq u7GivcOl//1BxPYF+0sMdB7TIAYzqyrBYetj3REHQ6YDu/9UKRaaQZQTYI5wKA7i9xsQ pBjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=KbBiGRC++xsujIlgApS9DZojo72SJ1THgTMsoEWnhRE=; b=eKeQKtFaNFA2+ykkwnLNJOogKaeJGpvJsnCKq48G2PUaIGGpX9mei8Mp1mu9ozg+Et V/Isbd4y1s/iWCE+GTte5RAs/wa+X2fz+l+YcRz+NJu/CkK9y/6ObCgTCDi4PniG02L2 f9ALV55k3rIk0OYvfbltbHsI3JOTd7r4WwKZILfRCzwv1gduWlqnUtGYx7ld36nuwtv/ /C3bJj0Pd/1rOMCOvN3WR1m6Muft86N8nx4NYTynLknGjkX9FQpCaPLbBVw9KXFhkBC3 AsGzQqDa/swfg8D3/RPpcZUOlw8SCpzAitANfyqlVbIWTmM+lTRMuHIGI56kqD5bp1lZ 9xYg== X-Received: by 10.50.61.162 with SMTP id q2mr856432igr.10.1378468304661; Fri, 06 Sep 2013 04:51:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.41.100 with SMTP id e4ls454131igl.9.canary; Fri, 06 Sep 2013 04:51:44 -0700 (PDT) X-Received: by 10.66.160.36 with SMTP id xh4mr982984pab.11.1378468304296; Fri, 06 Sep 2013 04:51:44 -0700 (PDT) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by gmr-mx.google.com with ESMTPS id hx4si453786pad.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 04:51:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.182 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.182; Received: by mail-pd0-f182.google.com with SMTP id r10so3159687pdi.41 for ; Fri, 06 Sep 2013 04:51:44 -0700 (PDT) X-Gm-Message-State: ALoCoQkjQA4j5vFdg6zIb32PkWz6fy6Egx/JQaX6MyAoyYlmmF6N/NeOs2VgkLdvyT4T2+JDGffh X-Received: by 10.66.121.201 with SMTP id lm9mr3493042pab.80.1378468304198; Fri, 06 Sep 2013 04:51:44 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id q1sm3323153pbd.12.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 04:51:43 -0700 (PDT) From: Sachin Kamat To: rtc-linux@googlegroups.com Cc: a.zummo@towertech.it, akpm@linux-foundation.org, sachin.kamat@linaro.org Subject: [rtc-linux] [PATCH 04/10] drivers/rtc/rtc-vt8500.c: Fix return value Date: Fri, 6 Sep 2013 17:03:37 +0530 Message-Id: <1378467223-26231-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378467223-26231-1-git-send-email-sachin.kamat@linaro.org> References: <1378467223-26231-1-git-send-email-sachin.kamat@linaro.org> X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.192.182 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Propagate the return value from platform_get_irq() instead of hardcoding. Signed-off-by: Sachin Kamat --- drivers/rtc/rtc-vt8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c index c2d6331..5be217d 100644 --- a/drivers/rtc/rtc-vt8500.c +++ b/drivers/rtc/rtc-vt8500.c @@ -228,7 +228,7 @@ static int vt8500_rtc_probe(struct platform_device *pdev) vt8500_rtc->irq_alarm = platform_get_irq(pdev, 0); if (vt8500_rtc->irq_alarm < 0) { dev_err(&pdev->dev, "No alarm IRQ resource defined\n"); - return -ENXIO; + return vt8500_rtc->irq_alarm; } vt8500_rtc->res = devm_request_mem_region(&pdev->dev,