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
ADSBitsy -rw-r--r-- 1.4 KB
Assabet -rw-r--r-- 8.9 KB
Brutus -rw-r--r-- 1.8 KB
CERF -rw-r--r-- 1.2 KB
FreeBird -rw-r--r-- 544 bytes
GraphicsClient -rw-r--r-- 3.5 KB
GraphicsMaster -rw-r--r-- 1.9 KB
HUW_WEBPANEL -rw-r--r-- 369 bytes
Itsy -rw-r--r-- 1.8 KB
LART -rw-r--r-- 706 bytes
PLEB -rw-r--r-- 302 bytes
Pangolin -rw-r--r-- 708 bytes
Tifon -rw-r--r-- 103 bytes
Victor -rw-r--r-- 448 bytes
Yopy -rw-r--r-- 44 bytes
empeg -rw-r--r-- 21 bytes
nanoEngine -rw-r--r-- 310 bytes
serial_UART -rw-r--r-- 1.8 KB

back to top