|
@@ -2926,15 +2926,15 @@ void dw_mci_remove(struct dw_mci *host)
|
|
|
{
|
|
|
int i;
|
|
|
|
|
|
- mci_writel(host, RINTSTS, 0xFFFFFFFF);
|
|
|
- mci_writel(host, INTMASK, 0); /* disable all mmc interrupt first */
|
|
|
-
|
|
|
for (i = 0; i < host->num_slots; i++) {
|
|
|
dev_dbg(host->dev, "remove slot %d\n", i);
|
|
|
if (host->slot[i])
|
|
|
dw_mci_cleanup_slot(host->slot[i], i);
|
|
|
}
|
|
|
|
|
|
+ mci_writel(host, RINTSTS, 0xFFFFFFFF);
|
|
|
+ mci_writel(host, INTMASK, 0); /* disable all mmc interrupt first */
|
|
|
+
|
|
|
/* disable clock to CIU */
|
|
|
mci_writel(host, CLKENA, 0);
|
|
|
mci_writel(host, CLKSRC, 0);
|