From: Boris Brezillon Date: Sun, 8 Feb 2015 18:23:42 +0000 (+0100) Subject: pinctrl: at91: move lock/unlock_as_irq calls into request/release X-Git-Tag: omap-for-v4.2/o2_dc~292^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd8733738c5af6114dd15d340b3f8713e9b624c2;p=pandora-kernel.git 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 Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre Acked-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Linus Walleij --- Reading git-diff-tree failed