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
Makefile -rw-r--r-- 920 bytes
auto_group.c -rw-r--r-- 5.5 KB
auto_group.h -rw-r--r-- 1.5 KB
clock.c -rw-r--r-- 10.1 KB
completion.c -rw-r--r-- 9.6 KB
core.c -rw-r--r-- 200.0 KB
cpuacct.c -rw-r--r-- 5.9 KB
cpuacct.h -rw-r--r-- 355 bytes
cpudeadline.c -rw-r--r-- 5.5 KB
cpudeadline.h -rw-r--r-- 668 bytes
cpupri.c -rw-r--r-- 6.8 KB
cpupri.h -rw-r--r-- 674 bytes
cputime.c -rw-r--r-- 21.9 KB
deadline.c -rw-r--r-- 45.0 KB
debug.c -rw-r--r-- 15.4 KB
fair.c -rw-r--r-- 211.8 KB
features.h -rw-r--r-- 2.2 KB
idle.c -rw-r--r-- 7.2 KB
idle_task.c -rw-r--r-- 2.3 KB
proc.c -rw-r--r-- 16.5 KB
rt.c -rw-r--r-- 48.9 KB
sched.h -rw-r--r-- 43.5 KB
stats.c -rw-r--r-- 3.2 KB
stats.h -rw-r--r-- 7.8 KB
stop_task.c -rw-r--r-- 2.9 KB
wait.c -rw-r--r-- 17.7 KB

back to top