mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 21:24:21 +08: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)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
gpio_set_value(gpio, value);
|
return gpio_set_value(gpio, value);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user