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-- 1.3 KB
callback_srm.S -rw-r--r-- 2.8 KB
checksum.c -rw-r--r-- 4.5 KB
clear_page.S -rw-r--r-- 401 bytes
clear_user.S -rw-r--r-- 2.6 KB
copy_page.S -rw-r--r-- 532 bytes
copy_user.S -rw-r--r-- 2.5 KB
csum_ipv6_magic.S -rw-r--r-- 2.8 KB
csum_partial_copy.c -rw-r--r-- 9.0 KB
dbg_current.S -rw-r--r-- 402 bytes
dbg_stackcheck.S -rw-r--r-- 427 bytes
dbg_stackkill.S -rw-r--r-- 575 bytes
dec_and_lock.c -rw-r--r-- 811 bytes
divide.S -rw-r--r-- 4.2 KB
ev6-clear_page.S -rw-r--r-- 602 bytes
ev6-clear_user.S -rw-r--r-- 7.2 KB
ev6-copy_page.S -rw-r--r-- 4.2 KB
ev6-copy_user.S -rw-r--r-- 7.3 KB
ev6-csum_ipv6_magic.S -rw-r--r-- 5.1 KB
ev6-divide.S -rw-r--r-- 6.2 KB
ev6-memchr.S -rw-r--r-- 5.2 KB
ev6-memcpy.S -rw-r--r-- 6.1 KB
ev6-memset.S -rw-r--r-- 15.8 KB
ev6-stxcpy.S -rw-r--r-- 9.4 KB
ev6-stxncpy.S -rw-r--r-- 11.2 KB
ev67-strcat.S -rw-r--r-- 1.5 KB
ev67-strchr.S -rw-r--r-- 2.7 KB
ev67-strlen.S -rw-r--r-- 1.2 KB
ev67-strncat.S -rw-r--r-- 2.4 KB
ev67-strrchr.S -rw-r--r-- 3.2 KB
fls.c -rw-r--r-- 1.1 KB
fpreg.c -rw-r--r-- 6.0 KB
memchr.S -rw-r--r-- 4.9 KB
memcpy.c -rw-r--r-- 4.0 KB
memmove.S -rw-r--r-- 2.6 KB
memset.S -rw-r--r-- 2.9 KB
srm_printk.c -rw-r--r-- 656 bytes
srm_puts.c -rw-r--r-- 370 bytes
stacktrace.c -rw-r--r-- 2.6 KB
strcat.S -rw-r--r-- 946 bytes
strchr.S -rw-r--r-- 1.9 KB
strcpy.S -rw-r--r-- 407 bytes
strlen.S -rw-r--r-- 1.1 KB
strncat.S -rw-r--r-- 1.8 KB
strncpy.S -rw-r--r-- 1.5 KB
strrchr.S -rw-r--r-- 2.7 KB
stxcpy.S -rw-r--r-- 8.7 KB
stxncpy.S -rw-r--r-- 10.6 KB
udelay.c -rw-r--r-- 1.1 KB

back to top