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
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 393 bytes |
ashldi3.S | -rw-r--r-- | 839 bytes |
ashrdi3.S | -rw-r--r-- | 867 bytes |
checksum.c | -rw-r--r-- | 4.2 KB |
clear_page.S | -rw-r--r-- | 389 bytes |
cmpdi2.S | -rw-r--r-- | 602 bytes |
copy_page.S | -rw-r--r-- | 456 bytes |
delay.c | -rw-r--r-- | 1.3 KB |
div64.S | -rw-r--r-- | 1.9 KB |
divsi3.S | -rw-r--r-- | 3.7 KB |
ip_fast_csum.S | -rw-r--r-- | 719 bytes |
lshrdi3.S | -rw-r--r-- | 857 bytes |
memcpy.S | -rw-r--r-- | 4.7 KB |
memmove.S | -rw-r--r-- | 6.4 KB |
memset.S | -rw-r--r-- | 2.3 KB |
modsi3.S | -rw-r--r-- | 1.1 KB |
muldi3.S | -rw-r--r-- | 1.0 KB |
ucmpdi2.S | -rw-r--r-- | 498 bytes |
usercopy.c | -rw-r--r-- | 36.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...