From patchwork Wed Jun 26 02:09:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 254547 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 23C732C00AB for ; Wed, 26 Jun 2013 12:09:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DAA3B4A02A; Wed, 26 Jun 2013 04:09:48 +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 mSpTFNowJVL4; Wed, 26 Jun 2013 04:09:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0715C4A023; Wed, 26 Jun 2013 04:09:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 94CC54A023 for ; Wed, 26 Jun 2013 04:09:38 +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 r3VeKsEq14xK for ; Wed, 26 Jun 2013 04:09:32 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by theia.denx.de (Postfix) with ESMTPS id 40E3F4A018 for ; Wed, 26 Jun 2013 04:09:24 +0200 (CEST) Received: by mail-pb0-f52.google.com with SMTP id xa12so13377480pbc.25 for ; Tue, 25 Jun 2013 19:09:21 -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:content-type:x-mailer :mime-version:content-transfer-encoding:x-gm-message-state; bh=Lo/WPU9+AMmE9hcg8muxe0HHgu7BG/bu0bDvcBw3u7U=; b=L3wa+/ygNReC9UZoTSuBRLltraIoB2davjdo+Vye5V7T59OTJHjHjaCV2jMb1HTb+y mjMH6sFf7yd6jXBoVndGhw4JjzkAd2a4VwYHsyWaNeMjml9aZKEea8muPEdYzxs5431I yHOpMjowben27Tq8TWhwlsAswJwgZkYBS6aqF6v94I3YudN9wrr/1lO9Om4lZg+8p7yb qedn6uJE+3w0b9y3tZvyM03623HVpKE0QrCjG0dTVRT2UaI5UnhRnWSOWqe8w5GVxFWG AMC9YJpL9KPy1vB2JXOIyY91lqd8lvTb/GR1yvqhAi1YjXnp3/mOhlP4XjInJsgGx0TP 8BDQ== X-Received: by 10.68.1.226 with SMTP id 2mr1702342pbp.150.1372212561413; Tue, 25 Jun 2013 19:09:21 -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 bs2sm27866739pad.17.2013.06.25.19.09.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 19:09:20 -0700 (PDT) Message-ID: <1372212556.5574.0.camel@phoenix> From: Axel Lin To: Sonic Zhang Date: Wed, 26 Jun 2013 10:09:16 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 X-Gm-Message-State: ALoCoQk7Zv23uH3DwSJW+dehFdYDMDPRu4/SRe4lA22eB4ZsqBApMXzO8KM5F3AVDtbpENinumPE Cc: u-boot@lists.denx.de, Bob Liu Subject: [U-Boot] [PATCH 1/2] blackfin: gpio: 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 --- arch/blackfin/cpu/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/blackfin/cpu/gpio.c b/arch/blackfin/cpu/gpio.c index f74a0b7..a4d10d5 100644 --- a/arch/blackfin/cpu/gpio.c +++ b/arch/blackfin/cpu/gpio.c @@ -662,8 +662,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