target: msm8916: Turn the crypto clocks off after crypto cleanup.
Disable the crypto clocks after the crypto cleanup is complete at
the LK exit.
CRs-Fixed: 659578
Change-Id: Ic2328cae353e89696806c5f0b00cddd5fbba484f
diff --git a/target/msm8916/init.c b/target/msm8916/init.c
index e182e5b..fa09199 100644
--- a/target/msm8916/init.c
+++ b/target/msm8916/init.c
@@ -461,11 +461,11 @@
mmc_put_card_to_sleep(dev);
sdhci_mode_disable(&dev->host);
- if (target_is_ssd_enabled())
- clock_ce_disable(CE1_INSTANCE);
-
if (crypto_initialized())
crypto_eng_cleanup();
+
+ if (target_is_ssd_enabled())
+ clock_ce_disable(CE1_INSTANCE);
}
/* Do any target specific intialization needed before entering fastboot mode */