From patchwork Wed Apr 4 16:07:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikram Narayanan X-Patchwork-Id: 150768 X-Patchwork-Delegate: sbabic@denx.de 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 C8ADDB700F for ; Thu, 5 Apr 2012 02:45:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3F407281EB; Wed, 4 Apr 2012 18:45:37 +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 2kg74xy4d8ZW; Wed, 4 Apr 2012 18:45:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B1F0B281ED; Wed, 4 Apr 2012 18:45:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B399728103 for ; Wed, 4 Apr 2012 18:07: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 2q9nSGi7dRKj for ; Wed, 4 Apr 2012 18:07:22 +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-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id 0F86E280F6 for ; Wed, 4 Apr 2012 18:07:20 +0200 (CEST) Received: by pbbrq13 with SMTP id rq13so386260pbb.3 for ; Wed, 04 Apr 2012 09:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=zKSPze59cS+hSrmSdUdEh4E8F4Sg9JpviLNxVBDQAOc=; b=W24eNgij9/Yv6hX1jiZVDn7dF4bVXx77bLOY8Ct+bl0jgzcjyMiIWa0hBO1gXIu67X lY5On7ZKju7B0uaSbeKC3DFu24kdYWbmLyXiX8DgjPSZPs5JQyVQIT3wr6nCg8p6yJIL 92TJ5RTcnHf0eRY7zLTd4ZyT01cm5pVBTdxhXxCZ+7eWVxX+AENSYVtuMAwFC49eUPiX +InIxAnYPD7ztwQDd77wBvcdMOWttvkTD6xCS5RORoqS5fcMaKoeIvEYNZPkuhJgSUOb Dy57ThkvZWbBpb8xAPU3KC/0d8K58C39FCRztpHyAdAVGWI7/uapQJed6sZaz3chdbad ldwA== Received: by 10.68.197.164 with SMTP id iv4mr38742642pbc.11.1333555638830; Wed, 04 Apr 2012 09:07:18 -0700 (PDT) Received: from [115.242.148.239] ([115.242.148.239]) by mx.google.com with ESMTPS id t7sm914283pbp.15.2012.04.04.09.07.16 (version=SSLv3 cipher=OTHER); Wed, 04 Apr 2012 09:07:18 -0700 (PDT) Message-ID: <4F7C71AD.50900@gmail.com> Date: Wed, 04 Apr 2012 21:37:09 +0530 From: Vikram Narayanan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: u-boot@lists.denx.de X-Mailman-Approved-At: Wed, 04 Apr 2012 18:45:01 +0200 Subject: [U-Boot] [PATCH 3/3] imx: Return gpio_set_value in gpio_direction_output 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 imx: Return gpio_set_value in gpio_direction_output Signed-off-by: Vikram Narayanan --- drivers/gpio/mxc_gpio.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 100.0% drivers/gpio/ diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index c4ef001..147c2c9 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -144,6 +144,5 @@ int gpio_direction_output(unsigned gpio, int value) if (ret < 0) return ret; - gpio_set_value(gpio, value); - return 0; + return gpio_set_value(gpio, value); }