From: Tom Rini Date: Mon, 25 Nov 2013 16:56:49 -0500 Subject: [U-Boot] [U-Boot, 2/3] gpio_led: check gpio_request() return value In-Reply-To: <1383865432-21801-3-git-send-email-grinberg@compulab.co.il> References: <1383865432-21801-3-git-send-email-grinberg@compulab.co.il> Message-ID: <20131125215649.GE420@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Nov 08, 2013 at 01:03:51AM +0200, Igor Grinberg wrote: > Add a check for the gpio_request() function return value and do not try > to configure the GPIO if the gpio_request() call fails. > Also, print an error message indicating the gpio_request() has failed. > > Signed-off-by: Igor Grinberg > Tested-by: Ilya Ledvich Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: