Unverified Commit cba53fe2 authored by Johan Hovold's avatar Johan Hovold Committed by Mark Brown
Browse files

spi: cadence-quadspi: fix clock imbalance on probe failure



Drop the bogus runtime PM get on probe failures that was never needed
and that leaks a usage count reference while preventing the clocks from
being disabled (as runtime PM has not yet been enabled).

Fixes: 1889dd20 ("spi: cadence-quadspi: Fix clock disable on probe failure path")
Cc: stable@vger.kernel.org	# 6.19
Cc: Anurag Dutta <a-dutta@ti.com>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421125354.1534871-3-johan@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5ff4d5d1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2000,7 +2000,6 @@ static int cqspi_probe(struct platform_device *pdev)
		pm_runtime_disable(dev);
	cqspi_controller_enable(cqspi, 0);
disable_clks:
	if (pm_runtime_get_sync(&pdev->dev) >= 0)
	clk_bulk_disable_unprepare(CLK_QSPI_NUM, cqspi->clks);

	return ret;