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

Commit 3abf0edd authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Mark Brown
Browse files

spi: sh-hspi: Add missing call to pm_runtime_disable() in failure path

parent c3003ce1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -279,11 +279,13 @@ static int hspi_probe(struct platform_device *pdev)
	ret = devm_spi_register_master(&pdev->dev, master);
	if (ret < 0) {
		dev_err(&pdev->dev, "spi_register_master error.\n");
		goto error1;
		goto error2;
	}

	return 0;

 error2:
	pm_runtime_disable(&pdev->dev);
 error1:
	clk_put(clk);
 error0: