From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Fri, 24 Oct 2014 11:01:50 +0200 Subject: [U-Boot] [U-Boot, v2, 4/6] dm: sunxi: Make sure that GPIOs are requested In-Reply-To: <1414036962-28463-5-git-send-email-sjg@chromium.org> References: <1414036962-28463-5-git-send-email-sjg@chromium.org> Message-ID: <544A157E.6020806@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 10/23/2014 06:02 AM, Simon Glass wrote: > 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 Looks good: Acked-by: Hans de Goede Regards, Hans > --- > > Changes in v2: None > > board/sunxi/ahci.c | 1 + > 1 file changed, 1 insertion(+) > > 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 > >