From: Simon Glass Date: Fri, 31 Oct 2014 02:25:48 +0000 (-0600) Subject: dm: sunxi: Make sure that GPIOs are requested X-Git-Tag: v2025.01-rc5-pxa1908~14361^2~4 X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=e6a8b0dabc8a91f9eda54548e56f54be65a725c4;p=u-boot.git 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 Acked-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/board/sunxi/ahci.c b/board/sunxi/ahci.c index 0c262eabb7..5e123285b0 100644 --- a/board/sunxi/ahci.c +++ b/board/sunxi/ahci.c @@ -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