提交 2173441d 编写于 作者: L Laurent Pinchart 提交者: Simon Horman

ARM: shmobile: armadillo800eva: Use gpio_set_value() to set GPIO value

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: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 0f69e708
...@@ -708,9 +708,9 @@ static int mt9t111_power(struct device *dev, int mode) ...@@ -708,9 +708,9 @@ static int mt9t111_power(struct device *dev, int mode)
/* video1 (= CON1 camera) expect 24MHz */ /* video1 (= CON1 camera) expect 24MHz */
clk_set_rate(mclk, clk_round_rate(mclk, 24000000)); clk_set_rate(mclk, clk_round_rate(mclk, 24000000));
clk_enable(mclk); clk_enable(mclk);
gpio_direction_output(GPIO_PORT158, 1); gpio_set_value(GPIO_PORT158, 1);
} else { } else {
gpio_direction_output(GPIO_PORT158, 0); gpio_set_value(GPIO_PORT158, 0);
clk_disable(mclk); clk_disable(mclk);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册