target: msm8x26: Disable crypto clocks after crypto cleanup.
Disable the crypto clocks after the crypto cleanup is complete at
the LK exit.
CRs-Fixed: 662325
Change-Id: If66b493b3353c658eb39beadf9191db0fd6f3872
diff --git a/target/msm8226/init.c b/target/msm8226/init.c
index b90c9a7..528f53b 100644
--- a/target/msm8226/init.c
+++ b/target/msm8226/init.c
@@ -418,11 +418,11 @@
mmc_put_card_to_sleep(dev);
- if (target_is_ssd_enabled())
- clock_ce_disable(SSD_CE_INSTANCE);
-
if (crypto_initialized())
crypto_eng_cleanup();
+
+ if (target_is_ssd_enabled())
+ clock_ce_disable(SSD_CE_INSTANCE);
}
void target_usb_init(void)