summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sunxi/pinctrl-sunxi.c
diff options
context:
space:
mode:
authorBoris Brezillon2015-02-08 19:23:42 +0100
committerLinus Walleij2015-03-18 02:01:36 +0100
commitbd8733738c5af6114dd15d340b3f8713e9b624c2 (patch)
tree38ca4f66468bf477ba9b20c7dab3021f6920ad06 /drivers/pinctrl/sunxi/pinctrl-sunxi.c
parentpinctrl: update direction_output function of cherryview driver (diff)
downloadkernel-qcow2-linux-bd8733738c5af6114dd15d340b3f8713e9b624c2.tar.gz
kernel-qcow2-linux-bd8733738c5af6114dd15d340b3f8713e9b624c2.tar.xz
kernel-qcow2-linux-bd8733738c5af6114dd15d340b3f8713e9b624c2.zip
pinctrl: at91: move lock/unlock_as_irq calls into request/release
The gpiochip_lock_as_irq call can fail and return an error, while the irq_startup is not expected to fail (returns an unsigned int which is not checked by irq core code). irq_request/release_resources functions have been created to address this problem. Move gpiochip_lock/unlock_as_irq calls into irq_request/release_resources functions to prevent using a gpio as an irq if the gpiochip_lock_as_irq call failed. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sunxi/pinctrl-sunxi.c')
0 files changed, 0 insertions, 0 deletions