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

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Geert Uytterhoeven 2014-03-11 10:59:10 +01:00 committed by Mark Brown
parent c3003ce144
commit 3abf0edd2c

View file

@ -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: