]> Pileus Git - ~andy/linux/commitdiff
ARM: shmobile: armadillo800eva: Use gpio_set_value() to set GPIO value
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 24 Jan 2013 12:16:31 +0000 (13:16 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 28 Jan 2013 00:54:20 +0000 (09:54 +0900)
The GPIO is already configured as an output, there's no reason to use
gpio_direction_output() just to set the output value. Use
gpio_set_value() instead.

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-armadillo800eva.c

index efd6a36ef7699468f6d4588645466b92a1c1e73e..f107e82d7e43e9753a58cb256ad2e6188f66edd1 100644 (file)
@@ -708,9 +708,9 @@ static int mt9t111_power(struct device *dev, int mode)
                /* video1 (= CON1 camera) expect 24MHz */
                clk_set_rate(mclk, clk_round_rate(mclk, 24000000));
                clk_enable(mclk);
-               gpio_direction_output(GPIO_PORT158, 1);
+               gpio_set_value(GPIO_PORT158, 1);
        } else {
-               gpio_direction_output(GPIO_PORT158, 0);
+               gpio_set_value(GPIO_PORT158, 0);
                clk_disable(mclk);
        }