X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fcrypto%2Fmv_cesa.c;h=21c1a87032b76b3efce5f0d8bf4a5d3051ddeed8;hb=7d3d09b01a028e9dd1282149fdcd2a6e0edd73e4;hp=0d4071754352f54a36ff74875619ed95ffdaa246;hpb=79071638ce655c1f78a50d05c7dae0ad04a3e92a;p=~andy%2Flinux diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c index 0d407175435..21c1a87032b 100644 --- a/drivers/crypto/mv_cesa.c +++ b/drivers/crypto/mv_cesa.c @@ -1127,6 +1127,10 @@ err_unreg_ecb: crypto_unregister_alg(&mv_aes_alg_ecb); err_irq: free_irq(irq, cp); + if (!IS_ERR(cp->clk)) { + clk_disable_unprepare(cp->clk); + clk_put(cp->clk); + } err_thread: kthread_stop(cp->queue_th); err_unmap_sram: