Message ID | 556F56BF.8090803@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDKLHK5XRULBBSVNXWVQKGQEALSOHCY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5CE1024612 for <linaro@patches.linaro.org>; Wed, 3 Jun 2015 19:34:35 +0000 (UTC) Received: by wgv5 with SMTP id 5sf4934216wgv.0 for <linaro@patches.linaro.org>; Wed, 03 Jun 2015 12:34:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:message-id:date:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=XZ93P1hO7d27p1qTwSyDNH626Bg4ommmwxr4LONO/J0=; b=KhTC5WsVMsQGRpx1mT6XG0j2vxojHUKgRKJOfMfPM91A0OQUnRd8o/KHuBJ4xwRtGf qRrknyfC6GhGEWmrAc/ecztoB4m+mkU/RGXvdufoSOAsEn3Lq0pW0nbwuheYbW65tbje rFrH+5h5qCSDyryD07YbnLdOvp2HymhKpHpzLBxWH1yQ/ZjSOgindC5qrNIT8LQMhtMz 4XfGBaAhh30nGjAflPrB/Lxo4IVrxY8FLAocWsrglTGzj859+37uIc0vhS1VWhY03Cg8 3VJ+3QPBKM/y7Pmvq7NdRd0Mz+iVN8jv1Zbi7UsOmRTJ5NVneg3aIXSYivN8FEs0J0Z8 Xt0g== X-Gm-Message-State: ALoCoQn1dQF8HkbLstQ1UlDSjEIRi3jUkH7GPLf5+h9KnZsifxP35XMW5qGeDgRL1F9fvFtKu5UU X-Received: by 10.112.219.200 with SMTP id pq8mr32084854lbc.7.1433360074581; Wed, 03 Jun 2015 12:34:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.246.35 with SMTP id xt3ls100426lac.37.gmail; Wed, 03 Jun 2015 12:34:34 -0700 (PDT) X-Received: by 10.112.56.42 with SMTP id x10mr33809012lbp.123.1433360074435; Wed, 03 Jun 2015 12:34:34 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id th3si18794844lbb.146.2015.06.03.12.34.34 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 12:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbbqq2 with SMTP id qq2so13835378lbb.3 for <patchwork-forward@linaro.org>; Wed, 03 Jun 2015 12:34:34 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr34467257lbc.32.1433360074327; Wed, 03 Jun 2015 12:34:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp49699lbb; Wed, 3 Jun 2015 12:34:33 -0700 (PDT) X-Received: by 10.70.51.67 with SMTP id i3mr62418015pdo.145.1433360072413; Wed, 03 Jun 2015 12:34:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vr2si2338280pab.15.2015.06.03.12.34.31; Wed, 03 Jun 2015 12:34:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933061AbbFCTeb (ORCPT <rfc822;linus.walleij@linaro.org> + 1 other); Wed, 3 Jun 2015 15:34:31 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:35486 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933054AbbFCTea (ORCPT <rfc822; linux-gpio@vger.kernel.org>); Wed, 3 Jun 2015 15:34:30 -0400 Received: by wiga1 with SMTP id a1so25541101wig.0 for <linux-gpio@vger.kernel.org>; Wed, 03 Jun 2015 12:34:29 -0700 (PDT) X-Received: by 10.180.96.196 with SMTP id du4mr44297071wib.77.1433360068917; Wed, 03 Jun 2015 12:34:28 -0700 (PDT) Received: from [172.22.39.17] ([195.238.92.128]) by mx.google.com with ESMTPSA id w11sm2422133wjr.48.2015.06.03.12.34.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 12:34:28 -0700 (PDT) From: "Grygorii.Strashko@linaro.org" <grygorii.strashko@linaro.org> Message-ID: <556F56BF.8090803@linaro.org> Date: Wed, 03 Jun 2015 22:34:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Javier Martinez Canillas <javier@dowhile0.org>, Linus Walleij <linus.walleij@linaro.org> CC: "Grygorii.Strashko@linaro.org" <grygorii.strashko@linaro.org>, Alexandre Courbot <gnurou@gmail.com>, Tony Lindgren <tony@atomide.com>, Santosh Shilimkar <ssantosh@kernel.org>, Kevin Hilman <khilman@deeprootsystems.com>, "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>, Linux GPIO List <linux-gpio@vger.kernel.org> Subject: Re: [PATCH 2/7] gpio: omap: fix error handling in omap_gpio_irq_type References: <1432305354-5968-1-git-send-email-grygorii.strashko@linaro.org> <1432305354-5968-3-git-send-email-grygorii.strashko@linaro.org> <CABxcv=m7htmrUStVJXdUmPvn+hOkA6+vZJi4qvcYZ46qXiJ6Jw@mail.gmail.com> <556DBD6D.8090306@linaro.org> In-Reply-To: <556DBD6D.8090306@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: grygorii.strashko@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index e26dc40..e3f8205 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -490,8 +490,10 @@ static int omap_gpio_irq_type(struct irq_data *d, unsigned type) spin_lock_irqsave(&bank->lock, flags); retval = omap_set_gpio_triggering(bank, offset, type); - if (retval) + if (retval) { + spin_unlock_irqrestore(&bank->lock, flags); goto error; + } spin_unlock_irqrestore(&bank->lock, flags); if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH))