Skip to content
Snippets Groups Projects
Commit e6a8b0da authored by Simon Glass's avatar Simon Glass Committed by Hans de Goede
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent bf38891a
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ void scsi_init(void)
{
printf("SUNXI SCSI INIT\n");
#ifdef CONFIG_SATAPWR
gpio_request(CONFIG_SATAPWR, "satapwr");
gpio_direction_output(CONFIG_SATAPWR, 1);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment