spi: sh-hspi: Add missing call to pm_runtime_disable() in failure path
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Tue, 11 Mar 2014 09:59:10 +0000 (10:59 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 11 Mar 2014 10:42:58 +0000 (10:42 +0000)
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sh-hspi.c

index 180eecf724285957ff60371bd3397dbb39156dde..89cfedf6d21a8fa10d4a82b1b6c0e6786dc8d6e6 100644 (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: