imx: Return gpio_set_value in gpio_direction_output

Return gpio_set_value in gpio_direction_output.
Earlier it returned 0 and ignored gpio_set_value's return value.

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
Vikram Narayanan 2012-04-10 04:26:30 +00:00 committed by Albert ARIBAUD
parent be28255462
commit d71c9c9fc0

View File

@ -145,6 +145,5 @@ int gpio_direction_output(unsigned gpio, int value)
if (ret < 0) if (ret < 0)
return ret; return ret;
gpio_set_value(gpio, value); return gpio_set_value(gpio, value);
return 0;
} }