Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 6ce4eac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -705,7 +705,7 @@ static int of_fsl_espi_probe(struct platform_device *ofdev)
		goto err;
		goto err;


	irq = irq_of_parse_and_map(np, 0);
	irq = irq_of_parse_and_map(np, 0);
	if (!ret) {
	if (!irq) {
		ret = -EINVAL;
		ret = -EINVAL;
		goto err;
		goto err;
	}
	}