aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-sh-hspi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c
index 180eecf72428..89cfedf6d21a 100644
--- a/drivers/spi/spi-sh-hspi.c
+++ b/drivers/spi/spi-sh-hspi.c
@@ -279,11 +279,13 @@ static int hspi_probe(struct platform_device *pdev)
279 ret = devm_spi_register_master(&pdev->dev, master); 279 ret = devm_spi_register_master(&pdev->dev, master);
280 if (ret < 0) { 280 if (ret < 0) {
281 dev_err(&pdev->dev, "spi_register_master error.\n"); 281 dev_err(&pdev->dev, "spi_register_master error.\n");
282 goto error1; 282 goto error2;
283 } 283 }
284 284
285 return 0; 285 return 0;
286 286
287 error2:
288 pm_runtime_disable(&pdev->dev);
287 error1: 289 error1:
288 clk_put(clk); 290 clk_put(clk);
289 error0: 291 error0: