Skip to contentSkip to conversation

crypto: inside-secure - Add missed clk_disable_unprepare

PATCH In review Chuhong Yuan 2 participants 2 messages Nov 1, 2019 – Nov 8, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/crypto/inside-secure/safexcel.c | 1 +
 1 file changed, 1 insertion(+)
drivers/crypto/inside-secure/safexcel.c +1 -0
index 4ab1bde8dd9b..24c0f2404ec6 100644
@@ -1623,6 +1623,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++)
Signature · 1 line
2.23.0
maintainer
#1 lore raw
Quoted 8 lines · Chuhong Yuan

safexcel_remove misses disabling priv->reg_clk like what is done when probe fails.
Add the missed call to fix it.

---
 drivers/crypto/inside-secure/safexcel.c | 1 +
 1 file changed, 1 insertion(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt