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: I74cd862426c3aad495a89f16881c75d0fe4e0a76
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
1 file changed