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
lxdialog
.gitignore -rw-r--r-- 167 bytes
Makefile -rw-r--r-- 11.6 KB
POTFILES.in -rw-r--r-- 361 bytes
check.sh -rwxr-xr-x 214 bytes
conf.c -rw-r--r-- 15.6 KB
confdata.c -rw-r--r-- 25.5 KB
expr.c -rw-r--r-- 26.5 KB
expr.h -rw-r--r-- 7.3 KB
gconf.c -rw-r--r-- 38.8 KB
gconf.glade -rw-r--r-- 25.0 KB
images.c -rw-r--r-- 6.4 KB
kxgettext.c -rw-r--r-- 4.1 KB
list.h -rw-r--r-- 3.6 KB
lkc.h -rw-r--r-- 4.9 KB
lkc_proto.h -rw-r--r-- 2.5 KB
mconf.c -rw-r--r-- 27.5 KB
menu.c -rw-r--r-- 16.8 KB
merge_config.sh -rwxr-xr-x 3.8 KB
nconf.c -rw-r--r-- 38.3 KB
nconf.gui.c -rw-r--r-- 14.5 KB
nconf.h -rw-r--r-- 1.9 KB
qconf.cc -rw-r--r-- 43.4 KB
qconf.h -rw-r--r-- 7.8 KB
streamline_config.pl -rwxr-xr-x 14.8 KB
symbol.c -rw-r--r-- 29.1 KB
util.c -rw-r--r-- 3.1 KB
zconf.gperf -rw-r--r-- 1.4 KB
zconf.hash.c_shipped -rw-r--r-- 12.0 KB
zconf.l -rw-r--r-- 6.5 KB
zconf.lex.c_shipped -rw-r--r-- 56.9 KB
zconf.tab.c_shipped -rw-r--r-- 73.4 KB
zconf.y -rw-r--r-- 15.0 KB

back to top