mmc: sdhci: Always init buf_ready_int
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 5 Dec 2014 17:41:10 +0000 (19:41 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:31 +0000 (09:56 +0100)
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>
drivers/mmc/host/sdhci.c

index 1aab8a120d0260aabb25182cd380bc39e8f35b96..79dc7437abee2974a6e73aa363cb3a625ddd721c 100644 (file)
@@ -3409,9 +3409,9 @@ int sdhci_add_host(struct sdhci_host *host)
 
        setup_timer(&host->timer, sdhci_timeout_timer, (unsigned long)host);
 
-       if (host->version >= SDHCI_SPEC_300) {
-               init_waitqueue_head(&host->buf_ready_int);
+       init_waitqueue_head(&host->buf_ready_int);
 
+       if (host->version >= SDHCI_SPEC_300) {
                /* Initialize re-tuning timer */
                init_timer(&host->tuning_timer);
                host->tuning_timer.data = (unsigned long)host;