summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-30 20:25:48 -0600
committerHans de Goede <hdegoede@redhat.com>2014-11-05 13:09:58 +0100
commite6a8b0dabc8a91f9eda54548e56f54be65a725c4 (patch)
treebf61e866deaa9b21c4f695d516fec023436218f2
parentbf38891af26c7a5016bdf5b73e8f61f8063e0138 (diff)
downloadu-boot-imx-e6a8b0dabc8a91f9eda54548e56f54be65a725c4.zip
u-boot-imx-e6a8b0dabc8a91f9eda54548e56f54be65a725c4.tar.gz
u-boot-imx-e6a8b0dabc8a91f9eda54548e56f54be65a725c4.tar.bz2
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>
-rw-r--r--board/sunxi/ahci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/sunxi/ahci.c b/board/sunxi/ahci.c
index 0c262ea..5e12328 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