commit | 80dfc42d0f8b29ae39d3296f63741f89cd9b6d68 | [log] [tgz] |
---|---|---|
author | Igor Grinberg <grinberg@compulab.co.il> | Fri Nov 08 01:03:51 2013 +0200 |
committer | Tom Rini <trini@ti.com> | Mon Nov 25 10:41:52 2013 -0500 |
tree | 03460a528001726d6c5badc36622b6adf168db19 | |
parent | 4997a9ec309a7cb147186b0a4c9bf158d84bce3e [diff] |
gpio_led: check gpio_request() return value 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 <grinberg@compulab.co.il> Tested-by: Ilya Ledvich <ilya@compulab.co.il>