mmc: sdhci-msm: Fix the order of removing sdhci-msm functionalities
In sdhci_msm_remove API, we are disabling/removing the functionalities in the wrong order. Fix this order. Also a functionality to be removed was missed. Fix this as well, so that unbinding and then binding the platform device will work cleanly. Also remove pm qos requests and debugfs nodes, if they were added during card insertion. Otherwise, unbinding sdhci-msm will later cause crashes in other subsystems, when they unfortunately use pm_qos. Change-Id: I22ebfea232274a47f4ebf84fc4983336b3563fc5 Signed-off-by:Vijay Viswanath <vviswana@codeaurora.org> Signed-off-by:
Bao D. Nguyen <nguyenb@codeaurora.org> (cherry picked from commit 1da164c9eed4db1ca8f3ae50ec535ed12d0394ab)
Loading
Please register or sign in to comment