Revision bd8733738c5af6114dd15d340b3f8713e9b624c2 authored by Boris Brezillon on 08 February 2015, 18:23:42 UTC, committed by Linus Walleij on 18 March 2015, 01:01:36 UTC
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>
1 parent 549e783
History
File Mode Size
apei
debug.txt -rw-r--r-- 5.6 KB
dsdt-override.txt -rw-r--r-- 245 bytes
enumeration.txt -rw-r--r-- 9.6 KB
gpio-properties.txt -rw-r--r-- 4.2 KB
initrd_table_override.txt -rw-r--r-- 3.3 KB
method-customizing.txt -rw-r--r-- 3.1 KB
method-tracing.txt -rw-r--r-- 798 bytes
namespace.txt -rw-r--r-- 17.1 KB
scan_handlers.txt -rw-r--r-- 4.3 KB
video_extension.txt -rw-r--r-- 4.0 KB

back to top