Re: [PATCH] mmc: mmc_spi: Fix return value evaluation of irq_of_parse_and_map()

2013-02-11 Thread Chris Ball
Hi, On Wed, Jan 30 2013, Roland Stigge wrote: 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

[PATCH] mmc: mmc_spi: Fix return value evaluation of irq_of_parse_and_map()

2013-01-30 Thread Roland Stigge
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 sth. different, e.g. on ARM, where it is -1. This