spi-imx: correct check for platform_get_irq failing
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 13 Dec 2009 07:58:13 +0000 (00:58 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 13 Dec 2009 07:58:13 +0000 (00:58 -0700)
commit60f675a12c03c65018beaa1d1ede41557aa60e00
tree7c0f52e1e5f6c7977c9846f468b78e67636c6b95
parent30eaed053c9bced7a23624e4bab5602e5b85124f
spi-imx: correct check for platform_get_irq failing

platform_get_irq returns -ENXIO if there is no entry.  So ensure
return value is greater than zero instead of non-zero.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_imx.c