Commit 7227cd18 authored by Hou Zhiqiang's avatar Hou Zhiqiang Committed by Mark Brown

spi/fsl-espi: fix the return value judgment of irq_of_parse_and_map.

Signed-off-by: default avatarHou Zhiqiang <b48286@freescale.com>
Acked-by: default avatarGrant Likely <grant.likely@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6ce4eac1
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment