]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pltfm: call platform_get_irq() before sdhci_alloc_host()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 20 Apr 2016 02:16:31 +0000 (11:16 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:34 +0000 (10:33 +0200)
commit3dccc94ad5a9dc654ee018c2d648906da6ffb43a
treef151df000076000b59513d3ba6b91fb69f0ab5a9
parent1ad2fee87ed7e310afda4de4a1a9e7350b56d206
mmc: sdhci-pltfm: call platform_get_irq() before sdhci_alloc_host()

Swap the call order of sdhci_alloc_host() and platform_get_irq().
It makes sdhci_alloc_host() the last function that can fail in the
sdhci_pltfm_init().  So, we can drop the sdhci_free_host() call from
the failure path.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pltfm.c