summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/inside-secure/safexcel.c
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2019-11-01 15:37:15 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-08 16:15:53 +0100
commitdf40c4e6cdaaacbf26d1206adb2419733de3bbf1 (patch)
tree362b396d8c9c0afb022dedf5c515292114370afc /drivers/crypto/inside-secure/safexcel.c
parentcrypto: hisilicon - replace #ifdef with IS_ENABLED for CONFIG_NUMA (diff)
downloadlinux-df40c4e6cdaaacbf26d1206adb2419733de3bbf1.tar.xz
linux-df40c4e6cdaaacbf26d1206adb2419733de3bbf1.zip
crypto: inside-secure - Add missed clk_disable_unprepare
safexcel_remove misses disabling priv->reg_clk like what is done when probe fails. Add the missed call to fix it. Signed-off-by: Chuhong Yuan <hslester96@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/inside-secure/safexcel.c')
-rw-r--r--drivers/crypto/inside-secure/safexcel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c
index fdd99ef07432..64894d8b442a 100644
--- a/drivers/crypto/inside-secure/safexcel.c
+++ b/drivers/crypto/inside-secure/safexcel.c
@@ -1749,6 +1749,7 @@ static int safexcel_remove(struct platform_device *pdev)
safexcel_unregister_algorithms(priv);
safexcel_hw_reset_rings(priv);
+ clk_disable_unprepare(priv->reg_clk);
clk_disable_unprepare(priv->clk);
for (i = 0; i < priv->config.rings; i++)