summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorHou Zhiqiang <b48286@freescale.com>2013-12-11 13:09:40 +0800
committerMark Brown <broonie@linaro.org>2013-12-11 11:06:53 +0000
commit7227cd18934276eb6d7cf758f79f8c6feacdc421 (patch)
treea50e29ae050e42d0012067da7e0f00d287d8bb4f /drivers/spi
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
downloadop-kernel-dev-7227cd18934276eb6d7cf758f79f8c6feacdc421.zip
op-kernel-dev-7227cd18934276eb6d7cf758f79f8c6feacdc421.tar.gz
spi/fsl-espi: fix the return value judgment of irq_of_parse_and_map.
Signed-off-by: Hou Zhiqiang <b48286@freescale.com> Acked-by: Grant Likely <grant.likely@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-fsl-espi.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud