]> Pileus Git - ~andy/linux/commitdiff
ARM: shmobile: bonito: Use gpio_request_one()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 24 Jan 2013 12:16:32 +0000 (13:16 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 28 Jan 2013 00:54:20 +0000 (09:54 +0900)
Replace occurences of gpio_request() and gpio_direction_*() by calls to
gpio_request_one().

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-bonito.c

index cb8c994e14301b1424589ce25962de750b0a3f8d..932a9c0926bc19ebf3b33a3f119a312fd2e25448 100644 (file)
@@ -392,8 +392,7 @@ static void __init bonito_init(void)
        /*
         * base board settings
         */
-       gpio_request(GPIO_PORT176, NULL);
-       gpio_direction_input(GPIO_PORT176);
+       gpio_request_one(GPIO_PORT176, GPIOF_IN, NULL);
        if (!gpio_get_value(GPIO_PORT176)) {
                u16 bsw2;
                u16 bsw3;
@@ -462,8 +461,8 @@ static void __init bonito_init(void)
                        gpio_request(GPIO_FN_LCD0_DISP,         NULL);
                        gpio_request(GPIO_FN_LCD0_LCLK_PORT165, NULL);
 
-                       gpio_request(GPIO_PORT61, NULL); /* LCDDON */
-                       gpio_direction_output(GPIO_PORT61, 1);
+                       gpio_request_one(GPIO_PORT61, GPIOF_OUT_INIT_HIGH,
+                                        NULL); /* LCDDON */
 
                        /* backlight on */
                        bonito_fpga_write(LCDCR, 1);