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

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

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c3003ce1
...@@ -279,11 +279,13 @@ static int hspi_probe(struct platform_device *pdev) ...@@ -279,11 +279,13 @@ static int hspi_probe(struct platform_device *pdev)
ret = devm_spi_register_master(&pdev->dev, master); ret = devm_spi_register_master(&pdev->dev, master);
if (ret < 0) { if (ret < 0) {
dev_err(&pdev->dev, "spi_register_master error.\n"); dev_err(&pdev->dev, "spi_register_master error.\n");
goto error1; goto error2;
} }
return 0; return 0;
error2:
pm_runtime_disable(&pdev->dev);
error1: error1:
clk_put(clk); clk_put(clk);
error0: error0:
......
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