mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 14:11:29 +01:00
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:
parent
be28255462
commit
d71c9c9fc0
@ -145,6 +145,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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user