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

Commit 329864d3 authored by Vignesh R's avatar Vignesh R Committed by Cyrille Pitchen
Browse files

mtd: spi-nor: cadence-quadspi: Fix error path in probe



Fix the reversed goto labels, so that we disable cqspi controller only
if its enabled previously. This is a minor cleanup.

Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@wedev4u.fr>
parent e2580a4a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1255,9 +1255,9 @@ static int cqspi_probe(struct platform_device *pdev)
	}

	return ret;
probe_irq_failed:
	cqspi_controller_enable(cqspi, 0);
probe_setup_failed:
	cqspi_controller_enable(cqspi, 0);
probe_irq_failed:
	clk_disable_unprepare(cqspi->clk);
	return ret;
}