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
scsi_transport_srp
00-INDEX -rw-r--r-- 3.3 KB
53c700.txt -rw-r--r-- 4.4 KB
BusLogic.txt -rw-r--r-- 25.8 KB
ChangeLog.1992-1997 -rw-r--r-- 58.5 KB
ChangeLog.arcmsr -rw-r--r-- 6.6 KB
ChangeLog.ips -rw-r--r-- 5.2 KB
ChangeLog.lpfc -rw-r--r-- 87.6 KB
ChangeLog.megaraid -rw-r--r-- 23.4 KB
ChangeLog.megaraid_sas -rw-r--r-- 25.2 KB
ChangeLog.ncr53c8xx -rw-r--r-- 22.3 KB
ChangeLog.sym53c8xx -rw-r--r-- 28.8 KB
ChangeLog.sym53c8xx_2 -rw-r--r-- 5.9 KB
FlashPoint.txt -rw-r--r-- 8.4 KB
LICENSE.FlashPoint -rw-r--r-- 2.6 KB
LICENSE.qla2xxx -rw-r--r-- 15.1 KB
LICENSE.qla4xxx -rw-r--r-- 15.1 KB
Mylex.txt -rw-r--r-- 311 bytes
NinjaSCSI.txt -rw-r--r-- 3.6 KB
aacraid.txt -rw-r--r-- 6.7 KB
advansys.txt -rw-r--r-- 9.3 KB
aha152x.txt -rw-r--r-- 6.4 KB
aic79xx.txt -rw-r--r-- 23.5 KB
aic7xxx.txt -rw-r--r-- 19.3 KB
arcmsr_spec.txt -rw-r--r-- 22.4 KB
bfa.txt -rw-r--r-- 2.3 KB
bnx2fc.txt -rw-r--r-- 3.1 KB
cxgb3i.txt -rw-r--r-- 3.2 KB
dc395x.txt -rw-r--r-- 3.3 KB
dpti.txt -rw-r--r-- 3.5 KB
dtc3x80.txt -rw-r--r-- 1.9 KB
g_NCR5380.txt -rw-r--r-- 2.2 KB
hpsa.txt -rw-r--r-- 5.0 KB
hptiop.txt -rw-r--r-- 7.0 KB
in2000.txt -rw-r--r-- 8.2 KB
libsas.txt -rw-r--r-- 13.2 KB
link_power_management_policy.txt -rw-r--r-- 729 bytes
lpfc.txt -rw-r--r-- 3.2 KB
megaraid.txt -rw-r--r-- 3.0 KB
ncr53c8xx.txt -rw-r--r-- 71.9 KB
osd.txt -rw-r--r-- 8.2 KB
osst.txt -rw-r--r-- 8.6 KB
ppa.txt -rw-r--r-- 411 bytes
qlogicfas.txt -rw-r--r-- 3.2 KB
scsi-changer.txt -rw-r--r-- 6.1 KB
scsi-generic.txt -rw-r--r-- 4.1 KB
scsi-parameters.txt -rw-r--r-- 3.5 KB
scsi.txt -rw-r--r-- 2.2 KB
scsi_eh.txt -rw-r--r-- 16.7 KB
scsi_fc_transport.txt -rw-r--r-- 21.4 KB
scsi_mid_low_api.txt -rw-r--r-- 57.9 KB
st.txt -rw-r--r-- 24.7 KB
sym53c500_cs.txt -rw-r--r-- 1.1 KB
sym53c8xx_2.txt -rw-r--r-- 39.3 KB
tmscsim.txt -rw-r--r-- 20.5 KB
ufs.txt -rw-r--r-- 5.0 KB
wd719x.txt -rw-r--r-- 846 bytes

back to top