Message ID | 1466143833-5856-5-git-send-email-k.kozlowski@samsung.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <rtc-linux+bncBDKZNNNLXAHBBZ5IR25QKGQE5QFHQRQ@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qk0-x238.google.com (mail-qk0-x238.google.com [IPv6:2607:f8b0:400d:c09::238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rW8y21Bgmz9sds for <incoming@patchwork.ozlabs.org>; Fri, 17 Jun 2016 16:10:50 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=DbuVZaSZ; dkim-atps=neutral Received: by mail-qk0-x238.google.com with SMTP id r68sf26710652qka.1 for <incoming@patchwork.ozlabs.org>; Thu, 16 Jun 2016 23:10:50 -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: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=DbuVZaSZ/rsvgzzPqRbRzidQ9p+7NZt5SFNaa8vnAnMioevNhyZdGd89u5dz5uiLYj USWrM6DgPSA15kdGMXF4v3euWnQ3OQ+0oiGu+dCVQlzbsm5FF1xfK7yres9u4zv5Kv0J Sy+JceDNHviQMiEf6SUVQV/cMNRVyHvKuQDmTvgZ/6LpW5VrmGzctIkHVOYCE2cVFvW/ J02jYJEGA0FaLBmhr0bpBBMgH1WsPx7HCMXDdWBtLE6nqWzfdk2YgdUO+EZp3UGjmTza n2FtZ00C8R0NLG5N6I08c1oYhMkYB24i69ZiJSmRZ1KjOhzrQ5QwwV7YqfVHYemI2h34 XIRQ== 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: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=YQceiQGD68IzG1pO2gPO+Ew2rVoQoQubHn+ooMXAohrV8Bab6dzxfFANvy8gIUlhW+ KT6wRXiWo0zhUQIhuaxMiXiGNUarGAPIUCy2XR9kxyRCyVruWDv1rfqt+hoLvl4dN489 xx4ONPcmIy18fVBjtzfNNkhLcQJWn80dSYmpzFL6E1mFhB+vTDe9CXGqnwdmV1hkURGM 2N3yRdQE0HrGqhnW3m2JLGuEPT4/y3mJ61mDl/KlpK5+XAfUpiYXyRiNIVNf8R7zTO+V BywLJW4GDcqDQgHCeBA0lPx3R9Js3l/gWrdoBKtOsCnMBMygVOBa3mqEJ0e/6VOAhlrN VIvA== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: ALyK8tKcs/j2r5A56K8ewC4lv5Jk/w7vTCbu2ldqqxxASGOoDDr7SpcQfZr81bhS+PxtXg== X-Received: by 10.36.91.149 with SMTP id g143mr81459itb.7.1466143848014; Thu, 16 Jun 2016 23:10:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.36.150.195 with SMTP id z186ls1008685itd.40.gmail; Thu, 16 Jun 2016 23:10:47 -0700 (PDT) X-Received: by 10.107.32.140 with SMTP id g134mr7284857iog.8.1466143847595; Thu, 16 Jun 2016 23:10:47 -0700 (PDT) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com. [210.118.77.11]) by gmr-mx.google.com with ESMTPS id ci4si4897742pad.1.2016.06.16.23.10.47 for <rtc-linux@googlegroups.com> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 16 Jun 2016 23:10:47 -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 eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8W006XEJTVR080@mailout1.w1.samsung.com> for rtc-linux@googlegroups.com; Fri, 17 Jun 2016 07:10:43 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-0c-57639463d36a Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id CA.ED.04866.36493675; Fri, 17 Jun 2016 07:10:43 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O8W0019NJTNFW30@eusync3.samsung.com>; Fri, 17 Jun 2016 07:10:43 +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] [RESEND v7 4/6] extcon: max8997: Fix handling error code of regmap_irq_get_virq() Date: Fri, 17 Jun 2016 08:10:31 +0200 Message-id: <1466143833-5856-5-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1466143833-5856-1-git-send-email-k.kozlowski@samsung.com> References: <1466143833-5856-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e/4Vd3kKcnhBpsb2C2WXLzKbtFxbTGT xcYZ61ktpj58wmZx/ctzVotJT94zW8w/co7V4vCiF4wWE1dOZrbovfqc0eL1C0OL/sevmS3u fz3KaPHtSgeTxabH11gtbn76xmpxedccNoutb9YxWnzuPcJoMeP8PiaL240r2Czu/vvEaLF7 11NWi/2dHYwWp3eXOEh6PNl0kdFj56y77B57Jp5k8ziy8xibx+YVWh6bVnWyedy5tgfIW1Lv sWf+D1aPvi2rGD2mz/vJ5PF5k1wATxSXTUpqTmZZapG+XQJXxoF9n5kLDrFXHN62ja2BcSJb FyMnh4SAicSOee+YIWwxiQv31gPFuTiEBJYyStzf18kK4TQySbw+1w9WxSZgLLF5+RKwKhGB j2wSl98/Y+xi5OBgFgiW+DmVEaRGWCBG4ti6drB6FgFVif/NP5hASngF3CRu9otCLJOTOHls MiuIzSngLtE1+w47iC0EVLJ5/x/mCYy8CxgZVjGKppYmFxQnpeca6RUn5haX5qXrJefnbmKE xNHXHYxLj1kdYhTgYFTi4V0hmhwuxJpYVlyZe4hRgoNZSYS3ZBJQiDclsbIqtSg/vqg0J7X4 EKM0B4uSOO/MXe9DhATSE0tSs1NTC1KLYLJMHJxSDYzbL2kmn52++WDnbS2NwGsl8V9dmbNX eMyL/sBWtcLx1JZj519tdDyhXDLl/3epgjy2sqbV854avd8quWO7Ks/2xcoVG4++tuxyUouL nM0dYnuj0WrFEfllu6yFdu7U/tX7bqPW8nMSu5q+29XaPpTfO/eUZW686aUrVlfePI1d2ucd 4cMXYvpUiaU4I9FQi7moOBEA2nlYAp8CAAA= 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/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; }