mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
dm: sunxi: Make sure that GPIOs are requested
The scsi_init() function uses a GPIO so should request it. There is no way to return an error here, and the request may be made multiple times, so just ignore errors for now. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
bf38891af2
commit
e6a8b0dabc
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ void scsi_init(void)
|
||||||
{
|
{
|
||||||
printf("SUNXI SCSI INIT\n");
|
printf("SUNXI SCSI INIT\n");
|
||||||
#ifdef CONFIG_SATAPWR
|
#ifdef CONFIG_SATAPWR
|
||||||
|
gpio_request(CONFIG_SATAPWR, "satapwr");
|
||||||
gpio_direction_output(CONFIG_SATAPWR, 1);
|
gpio_direction_output(CONFIG_SATAPWR, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue