From: Hou Zhiqiang Date: Wed, 11 Dec 2013 05:09:40 +0000 (+0800) Subject: spi/fsl-espi: fix the return value judgment of irq_of_parse_and_map. X-Git-Tag: v3.14-rc1~91^2~3^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7227cd18934276eb6d7cf758f79f8c6feacdc421;p=profile%2Fivi%2Fkernel-x86-ivi.git spi/fsl-espi: fix the return value judgment of irq_of_parse_and_map. Signed-off-by: Hou Zhiqiang Acked-by: Grant Likely Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 80d8f40..8106006 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -705,7 +705,7 @@ static int of_fsl_espi_probe(struct platform_device *ofdev) goto err; irq = irq_of_parse_and_map(np, 0); - if (!ret) { + if (!irq) { ret = -EINVAL; goto err; }