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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:03:26 +0000 (11:03 +0100)
commita50396a40fa796787eeef7143d17268dbecc79ef
tree80c7a41b258b57ec860c65b5e66d6e214e39775c
parent070e6d3ff5a69694fd354b705e04007e6630da48
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