pinctrl: freescale: imx: implement gpio_disable_free for Vybrid
authorStefan Agner <stefan@agner.ch>
Fri, 8 Jan 2016 18:50:30 +0000 (10:50 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Jan 2016 14:04:20 +0000 (15:04 +0100)
commit23c3960dfe6faea6fa8b8cb0bfedba2a03bda0c1
tree281b9f8a616cf1f9f71df9f5c7b5dc813ee3e96d
parentcc301fd1fcf28f92b122f7f6105db9d7c182cccc
pinctrl: freescale: imx: implement gpio_disable_free for Vybrid

The Freescale Vybrid SoC has GPIO capabilities as part of the
IOMUXC. To enable GPIO's, the gpio_request_enable callback has
been implemented, however the corsponding gpio_disable_free
callback is missing. So far, disabling (unexporting) a GPIO left
the pin in its last state.

Implement a proper gpio_disable_free function which clears the
three enable bits which influence the state (IBE, OBE and PUE).

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c