Richard Genoud 735759389b spi/imx: correct the test on platform_get_irq() return value
The test "if (spi_imx->irq <= 0)" is not testing the IRQ value, but
the return value of platform_get_irq().  As platform_get_irq() can
return an error (-ENXIO) or the IRQ value it found, the test should be
"if (spi_imx->irq < 0)"

[grant.likely: Note: In general, Linux irq number 0 should also mean
no irq, but arm still allows devices to be assigned 0, and the imx
platform uses 0 for one of the spi devices, so this patch is needed
for the device to work]

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-01-07 10:01:23 -07:00
..
2010-12-10 12:27:49 -08:00
2010-12-08 19:52:54 +01:00
2010-12-02 01:19:32 -05:00
2010-11-24 11:19:05 -08:00
2010-12-02 14:51:15 -08:00
2010-12-02 14:51:15 -08:00
2010-11-16 13:33:23 -08:00
2010-11-22 15:12:04 -05:00
2010-12-04 11:18:25 -05:00
2010-11-12 07:55:30 -08:00