pinctrl: bcm2835: Return pins to inputs when freed
authorPhil Elwell <phil@raspberrypi.org>
Fri, 6 May 2016 11:32:47 +0000 (12:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Nov 2016 23:14:14 +0000 (00:14 +0100)
commitccca1ad5db0e97710b69f9a3895e03290c47898b
tree82897208776b25fb2f284148c5a14480cbf5bb69
parent00445b5d5866c7b31bcfc59e907c9062100b4b0a
pinctrl: bcm2835: Return pins to inputs when freed

When dynamically unloading overlays, it is important that freed pins are
restored to being inputs to prevent functions from being enabled in
multiple places at once.

Cc: Stefan Wahren <stefan.wahren@i2se.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c