aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/zynq-fpga.c
diff options
context:
space:
mode:
authorMoritz Fischer <[email protected]>2015-10-19 20:35:33 +0000
committerGreg Kroah-Hartman <[email protected]>2015-10-23 23:49:12 +0000
commit6376931babd833dbd6f51e22a3de449ce6c60d61 (patch)
tree6d77e97b618dfccd144e84227fa84803ebd491b2 /drivers/fpga/zynq-fpga.c
parentmisc: sram: partition base address belongs to __iomem space (diff)
downloadkernel-6376931babd833dbd6f51e22a3de449ce6c60d61.tar.gz
kernel-6376931babd833dbd6f51e22a3de449ce6c60d61.zip
fpga: zynq-fpga: Fix unbalanced clock handling
This commit fixes the unbalanced clock handling, where a failed probe would leave the clock with an enable count of -1. Reported-by: Josh Cartwright <[email protected]> Signed-off-by: Moritz Fischer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
-rw-r--r--drivers/fpga/zynq-fpga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/fpga/zynq-fpga.c b/drivers/fpga/zynq-fpga.c
index 103303c88937..617d38281f49 100644
--- a/drivers/fpga/zynq-fpga.c
+++ b/drivers/fpga/zynq-fpga.c
@@ -487,7 +487,7 @@ static int zynq_fpga_probe(struct platform_device *pdev)
&zynq_fpga_ops, priv);
if (err) {
dev_err(dev, "unable to register FPGA manager");
- clk_disable_unprepare(priv->clk);
+ clk_unprepare(priv->clk);
return err;
}
@@ -502,7 +502,7 @@ static int zynq_fpga_remove(struct platform_device *pdev)
priv = platform_get_drvdata(pdev);
- clk_disable_unprepare(priv->clk);
+ clk_unprepare(priv->clk);
return 0;
}