pinctrl: bcm2835: Fix initial value for direction_output
commit4c02cba18cc9de672a554ddda4f23dec8cb4b48e
authorStefan Wahren <stefan.wahren@i2se.com>
Thu, 19 Nov 2015 00:32:27 +0000 (19 00:32 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Dec 2015 10:31:20 +0000 (14 11:31 +0100)
treedbaa6d40b3a8cafb9ccafadde350389596bc2691
parent99a735b3c287b70aa67952b1ff3d85cd924d85f9
pinctrl: bcm2835: Fix initial value for direction_output

Currently the provided initial value for bcm2835_gpio_direction_output
has no effect. So fix this issue by changing the value before
changing the GPIO direction. As a result we need to move the function below
bcm2835_gpio_set.

Suggested-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Fixes: e1b2dc70cd5b ("pinctrl: add bcm2835 driver")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c