]> git.sur5r.net Git - u-boot/commitdiff
tegra: seaboard: Correct the gpio_request() call
authorSimon Glass <sjg@chromium.org>
Tue, 10 Mar 2015 01:12:57 +0000 (19:12 -0600)
committerTom Warren <twarren@nvidia.com>
Mon, 30 Mar 2015 16:59:58 +0000 (09:59 -0700)
Requesting a GPIO without a name is not supposed anymore. This causes the
request to fail. Add a name so that the serial console works on seaboard.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
board/nvidia/seaboard/seaboard.c

index 25480e481d2dcc3c00f7055bed4e9b89cc242dc1..2d07001800e342a17e82666f48a4a7e1372ae458 100644 (file)
@@ -20,7 +20,7 @@
 void gpio_early_init_uart(void)
 {
        /* Enable UART via GPIO_PI3 (port 8, bit 3) so serial console works */
-       gpio_request(GPIO_PI3, NULL);
+       gpio_request(GPIO_PI3, "uart_en");
        gpio_direction_output(GPIO_PI3, 0);
 }
 #endif