Message ID | 1464774841-1439-4-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-qk0-x239.google.com (mail-qk0-x239.google.com [IPv6:2607:f8b0:400d:c09::239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rKQgY03Pjz9t7r 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=S41ae1CG; dkim-atps=neutral Received: by mail-qk0-x239.google.com with SMTP id q124sf3753800qkb.1 for <incoming@patchwork.ozlabs.org>; Wed, 01 Jun 2016 02:54:32 -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=OOMPUIG51lOZBbcTl+9bb1evm5k1ngK2N9XnzQoQq2w=; b=S41ae1CGnwpqQ894PuHDB+ec2bDWxYJ+pc4WKpIklKS6j3T7GmjFOWxiczSfUF+FVX +prcg6jz2uo4eEQNXLA7JYk1kbbtv0A39eW73yTXLJo0CHIM0t8XR3KT3cKkr10p/wM1 L/b6AdwRQg+2hE872bIqt78QiX30QGvNZaSexrBI0Jz/T8mcNx1GzQFYTiKcKO6ktJFj bPE+LdGuNaOaB+odkwUyni2hMMuTQ5IBYrKGxj0DbrdzDAYLkIU0WIbthcJHZGcSXntR Hxuc9ZjyNOdx2Y2NPU/Xam5typw4yvrnMYmQj9u5zSKiZS3qzbIEKeIpkAgOHkp9H56Y BYjw== 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=OOMPUIG51lOZBbcTl+9bb1evm5k1ngK2N9XnzQoQq2w=; b=cfkrx4Dc0qrNb53q4DRVKqz6/0Xd91r1YX84mTbjlbyB00zgsucandp6fC08UkkarU LEI0r2tbc0zbByuz+RA8vmRqud4rbbpMNnQ6F21MNv2XI8BcSXFtZ6q30eorSjkLAfuI 5Mi/YjWDDr20jonFsiCY7e2bjGrNQFTCfLom63FnvogJl4YByYYCUjq8I3xJpGLL328T 9JBS83PWIqVtw/CoD2IwJERhMb1EQ7ujSWrvB7FQb3JslKJrfLQaD6l232K0i3Wr0dRe gVG2VVJ9c8Otz4jyBI57QEsRJRh1E3zXxy06c043jnOJx964+lOyc+w2WGF2dhCEu35p ApVQ== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: ALyK8tI1naAReDR+DJVgfT+REyCHXBzZ73D4B/OyWTozkoUouSoBVo6tfopAAcPYPBu1Og== X-Received: by 10.157.35.100 with SMTP id k33mr36174otd.6.1464774871067; Wed, 01 Jun 2016 02:54:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.157.8.180 with SMTP id 49ls2036394otf.51.gmail; Wed, 01 Jun 2016 02:54:30 -0700 (PDT) X-Received: by 10.157.61.38 with SMTP id a35mr1594881otc.20.1464774870749; Wed, 01 Jun 2016 02:54:30 -0700 (PDT) Received: from mailout4.w1.samsung.com (mailout4.w1.samsung.com. [210.118.77.14]) by gmr-mx.google.com with ESMTPS id tp10si8291280pac.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.14 as permitted sender) client-ip=210.118.77.14; Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O83006GM7IQD470@mailout4.w1.samsung.com> for rtc-linux@googlegroups.com; Wed, 01 Jun 2016 10:54:26 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-2f-574eb0d2b77f Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id AE.32.05254.2D0BE475; Wed, 1 Jun 2016 10:54:26 +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:26 +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 4/6] extcon: max8997: Fix handling error code of regmap_irq_get_virq() Date: Wed, 01 Jun 2016 11:53:59 +0200 Message-id: <1464774841-1439-4-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: H4sIAAAAAAAAA+NgFlrEIsWRmVeSWpSXmKPExsVy+t/xK7qXNviFG9y4yW6x5OJVdouOa4uZ LDbOWM9qMfXhEzaL61+es1pMevKe2WL+kXOsFocXvWC0mLhyMrNF79XnjBavXxha9D9+zWxx /+tRRotvVzqYLDY9vsZqcfPTN1aLy7vmsFlsfbOO0eJz7xFGixnn9zFZ3G5cwWZx998nRovd u56yWuzv7GC0OL27xEHS48mmi4weO2fdZffYM/Ekm8eRncfYPDav0PLYtKqTzePOtT1A3pJ6 jz3zf7B69G1Zxegxfd5PJo/Pm+QCeKK4bFJSczLLUov07RK4Mg7s+8xccIi94vC2bWwNjBPZ uhg5OSQETCQ67/1nhrDFJC7cWw8U5+IQEljKKLFy629GCKeRSaLx4nGwDjYBY4nNy5eAVYkI fGSTuPz+GVAVBwezQLDEz6mMIDXCAtESnbv/sICEWQRUJaZdcwYJ8wq4SSz/vQ9qmZzEyWOT WUFsTgF3iftz7oCNFwKpeb6fCaSVE8j+eYYDxBQScJX4voJrAiP/AkaGVYyiqaXJBcVJ6bmG esWJucWleel6yfm5mxghMfdlB+PiY1aHGAU4GJV4eBUu+oYLsSaWFVfmHmKU4GBWEuGds8ov XIg3JbGyKrUoP76oNCe1+BCjNAeLkjjv3F3vQ4QE0hNLUrNTUwtSi2CyTBycUg2MQpHyatNn mlkdZjswfebFvwceqNobSGYd2pqvsPrQsVmPzE4WLH4Tu3rqurmJ7b98ouP2zK9U3Pgn5f/i OF9O8c3M0m1LFjw6926r6P7sR57G13/2n+k2dHRUENvyVPjP5t7Vf4usJxxWnv5G237dhYjO D1w3uWoW7Org+xxxSkZ6Xp7z5CTzB0osxRmJhlrMRcWJAMNMOG21AgAA 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.14 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/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index 68754ac2c8ea..0afa3e8b5dc3 100644 --- a/drivers/extcon/extcon-max8997.c +++ b/drivers/extcon/extcon-max8997.c @@ -660,11 +660,11 @@ static int max8997_muic_probe(struct platform_device *pdev) for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) { struct max8997_muic_irq *muic_irq = &muic_irqs[i]; - unsigned int virq = 0; + int virq = 0; virq = regmap_irq_get_virq(max8997->irq_data_muic, muic_irq->irq); - if (!virq) { + if (virq <= 0) { ret = -EINVAL; goto err_irq; }