summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-jcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-jcore.c')
-rw-r--r--drivers/spi/spi-jcore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-jcore.c b/drivers/spi/spi-jcore.c
index cebfea5faa4b..dafed6280df3 100644
--- a/drivers/spi/spi-jcore.c
+++ b/drivers/spi/spi-jcore.c
@@ -198,8 +198,10 @@ static int jcore_spi_probe(struct platform_device *pdev)
/* Register our spi controller */
err = devm_spi_register_master(&pdev->dev, master);
- if (err)
+ if (err) {
+ clk_disable(clk);
goto exit;
+ }
return 0;