projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3003ce
)
spi: sh-hspi: Add missing call to pm_runtime_disable() in failure path
author
Geert Uytterhoeven
<geert+renesas@linux-m68k.org>
Tue, 11 Mar 2014 09:59:10 +0000
(10:59 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-sh-hspi.c
b/drivers/spi/spi-sh-hspi.c
index 180eecf724285957ff60371bd3397dbb39156dde..89cfedf6d21a8fa10d4a82b1b6c0e6786dc8d6e6 100644
(file)
--- 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)
ret = devm_spi_register_master(&pdev->dev, master);
if (ret < 0) {
dev_err(&pdev->dev, "spi_register_master error.\n");
- goto error
1
;
+ goto error
2
;
}
return 0;
+ error2:
+ pm_runtime_disable(&pdev->dev);
error1:
clk_put(clk);
error0: