diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-12-05 12:41:10 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-19 03:56:31 -0500 |
commit | 250fb7b45031fd56f5f54da27ffc6fe05abea98e (patch) | |
tree | a233f4000254c8bddb36d4520c7804997abf96c6 | |
parent | f100c1c2b55b08d419b7cd3985cc144b41ce9a1f (diff) |
mmc: sdhci: Always init buf_ready_int
There is no point making the initialization
of buf_ready_int conditional on host version.
Simplify by just doing it always. Note that
the other conditional initializations will be
removed when the new way of doing re-tuning
is taken into use.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/sdhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1aab8a120d02..79dc7437abee 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -3409,9 +3409,9 @@ int sdhci_add_host(struct sdhci_host *host) | |||
3409 | 3409 | ||
3410 | setup_timer(&host->timer, sdhci_timeout_timer, (unsigned long)host); | 3410 | setup_timer(&host->timer, sdhci_timeout_timer, (unsigned long)host); |
3411 | 3411 | ||
3412 | if (host->version >= SDHCI_SPEC_300) { | 3412 | init_waitqueue_head(&host->buf_ready_int); |
3413 | init_waitqueue_head(&host->buf_ready_int); | ||
3414 | 3413 | ||
3414 | if (host->version >= SDHCI_SPEC_300) { | ||
3415 | /* Initialize re-tuning timer */ | 3415 | /* Initialize re-tuning timer */ |
3416 | init_timer(&host->tuning_timer); | 3416 | init_timer(&host->tuning_timer); |
3417 | host->tuning_timer.data = (unsigned long)host; | 3417 | host->tuning_timer.data = (unsigned long)host; |