瀏覽代碼

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>
Simon Glass 10 年之前
父節點
當前提交
e6a8b0dabc
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      board/sunxi/ahci.c

+ 1 - 0
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