]> git.baikalelectronics.ru Git - kernel.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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:03:26 +0000 (11:03 +0100)
commit952b33a6735cb944f2b2e72af3e9c9472ccdd5dd
tree80c7a41b258b57ec860c65b5e66d6e214e39775c
parentf75e863e37147779758602a1469a6ebbfd514780
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