]> git.baikalelectronics.ru Git - kernel.git/commitdiff
crypto: inside-secure - Add missed clk_disable_unprepare
authorChuhong Yuan <hslester96@gmail.com>
Fri, 1 Nov 2019 14:37:15 +0000 (22:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Nov 2019 15:15:53 +0000 (23:15 +0800)
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>
drivers/crypto/inside-secure/safexcel.c

index fdd99ef0743249ffc6d2fb0c319f674fb832e35b..64894d8b442a70e2e7ed47550f55c107f4a76838 100644 (file)
@@ -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++)