From patchwork Wed Jun 26 02:10:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 254548 X-Patchwork-Delegate: sonic.adi@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id EB1FD2C00B1 for ; Wed, 26 Jun 2013 12:10:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 273564A018; Wed, 26 Jun 2013 04:10:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k+t0dP0oxK7n; Wed, 26 Jun 2013 04:10:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5768C4A025; Wed, 26 Jun 2013 04:10:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2EDD64A018 for ; Wed, 26 Jun 2013 04:10:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eceFJgX2dLzc for ; Wed, 26 Jun 2013 04:10:17 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by theia.denx.de (Postfix) with ESMTPS id 19C3F4A028 for ; Wed, 26 Jun 2013 04:10:10 +0200 (CEST) Received: by mail-pb0-f51.google.com with SMTP id um15so13444468pbc.38 for ; Tue, 25 Jun 2013 19:10:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:x-mailer:mime-version:content-transfer-encoding :x-gm-message-state; bh=jsA40GsUN4w58kHa0eFFzI2KyzqVRllKCUUm21Dew2s=; b=cvcox+AKbytedQUuVNY3U4N//Q58XK5ACuZurUcURrXtUwTscJrj6j6zHeEF6PITye awA/6DzekHVU1KRcTQhiYk6tVVrM/295BbcIkI9xt57MWKv/hA0i5cOICIPTQrPFsN0K X2d/svWNw6o0eWW3Qr18Cb4BrsX8/IOVvcqUHIdJ1dLmfHJNSUKzUwJmhj9nm49fbCjX dghzT1gwmoF3YPaMV0G3gw5N1PTkxbBLEsWGtgT5OsVG0s9ZSsd5i+Tuiy0c3bivk0DW yUb19GzaMWCjCgTw24cY47bd+oYtwxDdJwxvP8bQUd1+wXVV8oLDYDzJYhypj/4vCzXu rzbA== X-Received: by 10.66.161.166 with SMTP id xt6mr2516275pab.87.1372212608734; Tue, 25 Jun 2013 19:10:08 -0700 (PDT) Received: from [192.168.0.100] (218-173-172-98.dynamic.hinet.net. [218.173.172.98]) by mx.google.com with ESMTPSA id p2sm27849026pag.22.2013.06.25.19.10.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 19:10:08 -0700 (PDT) Message-ID: <1372212604.5574.1.camel@phoenix> From: Axel Lin To: Sonic Zhang Date: Wed, 26 Jun 2013 10:10:04 +0800 In-Reply-To: <1372212556.5574.0.camel@phoenix> References: <1372212556.5574.0.camel@phoenix> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQkcwnE1jsb+qlebicfqWdK3JwXFI0+opt3i3kxrDlyhnbjvdCcOJd5oPPuFPrZ4MyO7c1RT Cc: u-boot@lists.denx.de, Bob Liu Subject: [U-Boot] [PATCH 2/2] gpio: adi_gpio2: Unreserve gpio in special_gpio_free() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de In special_gpio_free(), call unreserve() rather than reserve() to release gpio. Signed-off-by: Axel Lin Acked-by: Sonic Zhang --- drivers/gpio/adi_gpio2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/adi_gpio2.c b/drivers/gpio/adi_gpio2.c index 7a034eb..051073c 100644 --- a/drivers/gpio/adi_gpio2.c +++ b/drivers/gpio/adi_gpio2.c @@ -352,8 +352,8 @@ void special_gpio_free(unsigned gpio) return; } - reserve(special_gpio, gpio); - reserve(peri, gpio); + unreserve(special_gpio, gpio); + unreserve(peri, gpio); set_label(gpio, "free"); } #endif