Skip to content

Commit

Permalink
spi: sh-hspi: Add missing call to pm_runtime_disable() in failure path
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Geert Uytterhoeven authored and Mark Brown committed Mar 11, 2014
1 parent c3003ce commit 3abf0ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/spi/spi-sh-hspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3abf0ed

Please sign in to comment.