]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci-msm: factorise sdhci_msm_pdata outisde of sdhci_msm_host
authorJisheng Zhang <jszhang@marvell.com>
Tue, 16 Feb 2016 13:08:21 +0000 (21:08 +0800)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Tue, 14 Jun 2016 14:40:57 +0000 (17:40 +0300)
commit10156f1905ea4a30c2b1023d7e05f9ceac1c9793
tree7db0cf906fedf3459b15320956107f21ad684954
parent2e4646fcf227f8023e535ddb18d3f3185665d8dd
mmc: sdhci-msm: factorise sdhci_msm_pdata outisde of sdhci_msm_host

There's no need to allocate one sdhci_msm_pdata for each sdhci_msm_host.
This patch removes the sdhci_msm_pdata member from sdhci_msm_host and
uses one static global sdhci_msm_pdata for all sdhci msm hosts. It also
marks sdhci_msm_ops as const.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c