diff options
author | Pierre Tardy <pierre.tardy@intel.com> | 2011-02-06 13:02:48 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-03-15 13:48:30 -0400 |
commit | 66c036e0142fed2484d58a2d3c7a4d21ba32b6a6 (patch) | |
tree | cd6499240d111c2b074ef37f1517ccec2d14782f | |
parent | 54d6b44a5f0da708e8a9e496df304e05e8748ef9 (diff) |
mmc: put the led blinking code after clock ungating
Since mmc clock gating can also be used as a power gating
tip, it's better to put the led blinking after having
ungated the clock.
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/core/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 150b5f3cd401..2af2ee1a2265 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -167,8 +167,6 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) | |||
167 | 167 | ||
168 | WARN_ON(!host->claimed); | 168 | WARN_ON(!host->claimed); |
169 | 169 | ||
170 | led_trigger_event(host->led, LED_FULL); | ||
171 | |||
172 | mrq->cmd->error = 0; | 170 | mrq->cmd->error = 0; |
173 | mrq->cmd->mrq = mrq; | 171 | mrq->cmd->mrq = mrq; |
174 | if (mrq->data) { | 172 | if (mrq->data) { |
@@ -194,6 +192,7 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) | |||
194 | } | 192 | } |
195 | } | 193 | } |
196 | mmc_host_clk_ungate(host); | 194 | mmc_host_clk_ungate(host); |
195 | led_trigger_event(host->led, LED_FULL); | ||
197 | host->ops->request(host, mrq); | 196 | host->ops->request(host, mrq); |
198 | } | 197 | } |
199 | 198 | ||