diff options
author | Roland Stigge <stigge@antcom.de> | 2013-01-30 17:05:08 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-02-24 19:37:10 (GMT) |
commit | 073350f7b562d06df0aedd36c963508e36437b3c (patch) | |
tree | dfe27cee73f05f35523d41e679ac5ef1f8a417d3 /include/linux/statfs.h | |
parent | 14006bfbd2fe9f1307dc3350d7a12004ddd7fce0 (diff) | |
download | linux-fsl-qoriq-073350f7b562d06df0aedd36c963508e36437b3c.tar.xz |
mmc: mmc_spi: Fix return value evaluation of irq_of_parse_and_map()
When irq_of_parse_and_map() returns an error, it does as zero. But in
mmc_spi_get_pdata(), the error return case is compared against NO_IRQ.
This might work where NO_IRQ is zero (defaults to zero when undefined,
as on MIPS) but not where NO_IRQ is different, e.g. on ARM where it's -1.
This patch changes to comparison with 0 which is the error return value
of irq_of_parse_and_map().
Tested on ARM that mmc_spi is working now.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/statfs.h')
0 files changed, 0 insertions, 0 deletions