Message ID | 1464774841-1439-5-git-send-email-k.kozlowski@samsung.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <rtc-linux+bncBDKZNNNLXAHBBVXBXK5AKGQE7IZOJII@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-oi0-x23c.google.com (mail-oi0-x23c.google.com [IPv6:2607:f8b0:4003:c06::23c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rKQgY1tYmz9t7w for <incoming@patchwork.ozlabs.org>; Wed, 1 Jun 2016 19:54:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=Ewa9aJm+; dkim-atps=neutral Received: by mail-oi0-x23c.google.com with SMTP id s139sf2578065oie.1 for <incoming@patchwork.ozlabs.org>; Wed, 01 Jun 2016 02:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=vF2Nf1Zo9VHRCNGgqWv9YXHXyPFLJxr0r9y0/FP3M0Y=; b=Ewa9aJm+RRY6nhyraf9ur9Ctl5eDdJc5ScgX4tMn1Md3ykbgXmNOslmLkqCGvOtBoy S9LKHjwnb2pd6rpd1vDvj4Q1z+WtZmVl00uGwJaj8R9zNn3lRthRtMOMDExokM4GGyF8 U4/RVk67aX4pUQN/Yjm493modEgpH3kAH2f9aea0MQTM1nDJIg4KZbTYn1rq9ZE286my y8DutLjQpX7NxLfdk1YVpbe49fBJWF9CYhx0sa9708EtRF9KYDtplN4A4lFjAft//933 Uaf4sau77AJqjN3o6WwGbrxEWQaOYJq3lCPWeXQR/6lQsYg2HzQDksMQrqPI5OXRda9h uj0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=vF2Nf1Zo9VHRCNGgqWv9YXHXyPFLJxr0r9y0/FP3M0Y=; b=lBAjvZsuSUiX/klISIzfFpOhbiLLT/GdYF6aZYQX3Qf0mzAiA2+hu0lp8/i+MD37+7 TMXCDRvLP/kht2byS9Z+lK5sCeeTNl5KbZwcuc4yToVXBSOq1h7nqGG3X25aMx059RKR rC4/eyqqLCNMefNbLP8rPLYy7v/UYY1k4Fx3IqeV5R/Bpg0efFyPHyDiUZMjtcnS0ZFz //zUJM0fuUG/7dNl7cw4B5Qj4b3zrCMfoWOoIGAS9Kt5s12ejMpAtAPww6Wb1n966zgt jvOv23e4tNw84MGxMVon7biYr23Lrk7I6hulXH0ViWr5arXCgb4OxSVG8jaLUSfEGhpY hwcA== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: ALyK8tIBo3PIimfM8CzJvFApZ6leNDs24L6czGcE0eJhs/8qZx5Q0U1jKa2dSOcPiKrRCw== X-Received: by 10.36.79.141 with SMTP id c135mr259225itb.10.1464774871110; Wed, 01 Jun 2016 02:54:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.107.18.137 with SMTP id 9ls2140496ios.32.gmail; Wed, 01 Jun 2016 02:54:30 -0700 (PDT) X-Received: by 10.107.185.69 with SMTP id j66mr2611780iof.5.1464774870801; Wed, 01 Jun 2016 02:54:30 -0700 (PDT) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com. [210.118.77.11]) by gmr-mx.google.com with ESMTPS id tp10si8291284pac.2.2016.06.01.02.54.30 for <rtc-linux@googlegroups.com> (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 01 Jun 2016 02:54:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of k.kozlowski@samsung.com designates 210.118.77.11 as permitted sender) client-ip=210.118.77.11; Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8300G057IR5C70@mailout1.w1.samsung.com> for rtc-linux@googlegroups.com; Wed, 01 Jun 2016 10:54:27 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-30-574eb0d39c00 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 40.42.05254.3D0BE475; Wed, 1 Jun 2016 10:54:27 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O8300COA7ICBX70@eusync2.samsung.com>; Wed, 01 Jun 2016 10:54:27 +0100 (BST) From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Kukjin Kim <kgene@kernel.org>, Krzysztof Kozlowski <k.kozlowski@samsung.com>, MyungJoo Ham <myungjoo.ham@samsung.com>, Chanwoo Choi <cw00.choi@samsung.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Richard Purdie <rpurdie@rpsys.net>, Jacek Anaszewski <j.anaszewski@samsung.com>, Lee Jones <lee.jones@linaro.org>, Sebastian Reichel <sre@kernel.org>, Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>, David Woodhouse <dwmw2@infradead.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@free-electrons.com>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, rtc-linux@googlegroups.com Cc: r.baldyga@hackerion.com, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Subject: [rtc-linux] [PATCH v7 5/6] rtc: max8997: Check for ERRNO of regmap_irq_get_virq() Date: Wed, 01 Jun 2016 11:54:00 +0200 Message-id: <1464774841-1439-5-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1464774841-1439-1-git-send-email-k.kozlowski@samsung.com> References: <1464774841-1439-1-git-send-email-k.kozlowski@samsung.com> In-reply-to: <1464773339-756-1-git-send-email-k.kozlowski@samsung.com> References: <1464773339-756-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWRbUhTYRiGfXd2zs6Gw+OyelOSuRBDyBoavJhUFNUhUAMLQX/Y1MMU3bQd lQwi/WFNQUtFNmS6aoZrVuo01G0kOV2YVpOpFX5RahNMht+atHJa/677eS6e+8dDYiIDN5jM VhYwKqUsV0IIuEPed6MnXG0JyaeGK3HUNDLGQ+pxAwe1a1txVPdtjkCf19w4qpnzYEjf/xFH 9qcLAFU/r8VQ5ZgboMUFKXo4u4ihmfUBgDZG1Rxknh3H0deVDRy5LDoCvf75CqDVyn6AtJ/e cNBEqZFAU94VgKyWeRz1lqsBGrIWnD9Cz5lHAN1TP8WjbdWDBN3f4yDoDmMkbTaVE/TkuG03 Nd2jbfotnK7qNAFa07jNoVfNodf8UwRxmUxudhGjOnn2piBr8E8Jnm8jbjfu6EEJ6MIrAJ+E VAz8srL+jw9B53QrUQEEpIh6BmDXgzF8P5RyoGnJyfNZBBUNO5qb9qwgapmALs8PUAFIEqOS 4HYd8DkHqAT4wdOJ+ZhLhcNug2VvLqQuQ43LDvbbQuGgo3avmU9dgTO6ScLHol2n2d3L8Z3k 7/L2MOlDEXUJbhoFj0DAY+BnAgeZwox8Nl2ukEaxMgVbqJRHZeQpzGD/dWvdwOCI7QMUCST+ QvFIfLIIlxWxxYo+AElMEiTUmRKSRcJMWfEdRpWXpirMZdg+EEJyJYeFDRbPdREllxUwOQyT z6j+bzkkP7gEJLlgTUNVtLQ94oWmjO1y7TgXJTtP4hO33JpjLb/SG9OOls5PtKUuW7PfvqxK SZUev6slwk/by8SBbLpkur7d5XAZb7X+tluNbbqrHRHeG/PlYrYlLDFIHBJWM6DPsMckKnnT AbE579ei1dqlC36CjUDvxTjnpvx7hOr+mXMSLpslk0ZiKlb2F3r2V6S2AgAA X-Original-Sender: k.kozlowski@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of k.kozlowski@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=k.kozlowski@samsung.com Reply-To: rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: <https://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <https://groups.google.com/group/rtc-linux List-Subscribe: <https://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com>, <https://groups.google.com/group/rtc-linux/subscribe> |
diff --git a/drivers/rtc/rtc-max8997.c b/drivers/rtc/rtc-max8997.c index 4998aee0f07f..1a06e17ebe9b 100644 --- a/drivers/rtc/rtc-max8997.c +++ b/drivers/rtc/rtc-max8997.c @@ -497,7 +497,7 @@ static int max8997_rtc_probe(struct platform_device *pdev) } virq = regmap_irq_get_virq(max8997->irq_data, MAX8997_PMICIRQ_RTCA1); - if (!virq) { + if (virq <= 0) { dev_err(&pdev->dev, "Failed to create mapping alarm IRQ\n"); ret = -ENXIO; goto err_out;