]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: sunxi: Make sure that GPIOs are requested
authorSimon Glass <sjg@chromium.org>
Fri, 31 Oct 2014 02:25:48 +0000 (20:25 -0600)
committerHans de Goede <hdegoede@redhat.com>
Wed, 5 Nov 2014 12:09:58 +0000 (13:09 +0100)
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>
board/sunxi/ahci.c

index 0c262eabb754785ca4a53064e47af53feee1d820..5e123285b03d2d8a8fb29b6c2712d11bf4fa1df5 100644 (file)
@@ -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