]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Undo MMC patch e2607096a5fb9b67f8e1a7bafa824109b8da45d6
authorTony Lindgren <tony@atomide.com>
Thu, 4 May 2006 08:20:37 +0000 (01:20 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 4 May 2006 08:20:37 +0000 (01:20 -0700)
Using MMC_POWER_ON is a better solution as noted by RMK

drivers/mmc/omap.c

index 51670cf1eedfab0678fad2a443e8611a02de1031..7c8b6ceb9348455f36fe3d8aa5174ce20ca72b29 100644 (file)
@@ -899,16 +899,9 @@ static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
        int dsor;
        int realclock, i;
 
-       /* According to the MMC spec we must not enable clock prior to
-        * power stabilizing. But at least omap16xx needs clock dsor
-        * configured during MMC_POWER_UP.
-        */
-       if ((ios->power_mode == MMC_POWER_UP) && (ios->clock == 0))
-               realclock = mmc->f_min;
-       else
-               realclock = ios->clock;
+       realclock = ios->clock;
 
-       if (realclock == 0)
+       if (ios->clock == 0)
                dsor = 0;
        else {
                int func_clk_rate = clk_get_rate(host->fclk);