From: Richard Genoud Date: Fri, 7 Jan 2011 14:26:01 +0000 (+0100) Subject: spi/imx: correct the test on platform_get_irq() return value X-Git-Tag: v2.6.38-rc1~454^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=735759389b7143f95ae7badc97511e7e4729e873;p=pandora-kernel.git 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 Signed-off-by: Grant Likely --- Reading git-diff-tree failed