]> Git Repo - linux.git/commit
pinctrl: at91: move lock/unlock_as_irq calls into request/release
authorBoris Brezillon <[email protected]>
Sun, 8 Feb 2015 18:23:42 +0000 (19:23 +0100)
committerLinus Walleij <[email protected]>
Wed, 18 Mar 2015 01:01:36 +0000 (02:01 +0100)
commitbd8733738c5af6114dd15d340b3f8713e9b624c2
tree38ca4f66468bf477ba9b20c7dab3021f6920ad06
parent549e783f6a1504fcd24576302bc3818538b677f0
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 <[email protected]>
Acked-by: Ludovic Desroches <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
drivers/pinctrl/pinctrl-at91.c
This page took 0.057551 seconds and 4 git commands to generate.