mmc: tmio: factor out common parts of the reset routine
[sfrench/cifs-2.6.git] / drivers / mmc / host / tmio_mmc.c
index 93e83ad25976e756bdb04408b51c506925b02534..757c90160ae4440a5a85368562fe1f232d3976f3 100644 (file)
@@ -77,18 +77,10 @@ static void tmio_mmc_set_clock(struct tmio_mmc_host *host,
 
 static void tmio_mmc_reset(struct tmio_mmc_host *host)
 {
-       /* FIXME - should we set stop clock reg here */
-       sd_ctrl_write16(host, CTL_RESET_SD, 0x0000);
        sd_ctrl_write16(host, CTL_RESET_SDIO, 0x0000);
        usleep_range(10000, 11000);
-       sd_ctrl_write16(host, CTL_RESET_SD, 0x0001);
        sd_ctrl_write16(host, CTL_RESET_SDIO, 0x0001);
        usleep_range(10000, 11000);
-
-       if (host->pdata->flags & TMIO_MMC_SDIO_IRQ) {
-               sd_ctrl_write16(host, CTL_SDIO_IRQ_MASK, host->sdio_irq_mask);
-               sd_ctrl_write16(host, CTL_TRANSACTION_CTL, 0x0001);
-       }
 }
 
 #ifdef CONFIG_PM_SLEEP