aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2015-02-23 21:07:07 -0500
committerVinod Koul <vinod.koul@intel.com>2015-03-05 11:24:26 -0500
commit84f11d5b1f2abc0e22895b7e12e037f0ec03caeb (patch)
tree409c9b17a69320632bad77f183a0e2b1ff7610e2 /drivers
parentf33c9d655893d8632460696bbbdee737cb315711 (diff)
mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info
Current sh_mobile_sdhi's platform data is set via sh_mobile_sdhi_info and it is just copied to tmio_mmc_data. Now, tmio mmc platform data is specified via tmio_mmc_data. This patch replace sh_mobile_sdhi_info to tmio_mmc_data struct sh_mobile_sdhi_info { -> struct tmio_mmc_data { int dma_slave_tx; -> void *chan_priv_tx; int dma_slave_rx; -> void *chan_priv_rx; unsigned long tmio_flags; -> unsigned long flags; unsigned long tmio_caps; -> unsigned long capabilities; unsigned long tmio_caps2; -> unsigned long capabilities2; u32 tmio_ocr_mask; -> u32 ocr_mask; unsigned int cd_gpio; -> unsigned int cd_gpio; }; unsigned int hclk; void (*set_pwr)(...); void (*set_clk_div)(...); }; Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sh_mobile_sdhi.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c
index 3137e292270e..354f4f335ed5 100644
--- a/drivers/mmc/host/sh_mobile_sdhi.c
+++ b/drivers/mmc/host/sh_mobile_sdhi.c
@@ -202,7 +202,6 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
202 struct sh_mobile_sdhi *priv; 202 struct sh_mobile_sdhi *priv;
203 struct tmio_mmc_data *mmc_data; 203 struct tmio_mmc_data *mmc_data;
204 struct tmio_mmc_data *mmd = pdev->dev.platform_data; 204 struct tmio_mmc_data *mmd = pdev->dev.platform_data;
205 struct sh_mobile_sdhi_info *p = pdev->dev.platform_data;
206 struct tmio_mmc_host *host; 205 struct tmio_mmc_host *host;
207 struct resource *res; 206 struct resource *res;
208 int irq, ret, i = 0; 207 int irq, ret, i = 0;
@@ -246,32 +245,9 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
246 else 245 else
247 host->bus_shift = 0; 246 host->bus_shift = 0;
248 247
249 if (mmd) { 248 if (mmd)
250 /*
251 * FIXME
252 *
253 * sh_mobile_sdhi_info will be replaced to tmio_mmc_data soon.
254 * But, sh_mobile_sdhi_info is used under
255 * ${LINUX}/arch/arm/mach-shmobile/
256 * ${LINUX}/arch/sh/
257 * To separate large patch into "tmio_mmc_data has .chan_priv_?x"
258 * and "replace sh_mobile_sdhi_info in tmio_mmc_data",
259 * here has dummy method.
260 * These should be removed.
261 */
262 struct tmio_mmc_data m;
263
264 mmd = &m;
265 m.flags = p->tmio_flags;
266 m.ocr_mask = p->tmio_ocr_mask;
267 m.capabilities = p->tmio_caps;
268 m.capabilities2 = p->tmio_caps2;
269 m.cd_gpio = p->cd_gpio;
270 m.chan_priv_tx = (void *)p->dma_slave_tx;
271 m.chan_priv_rx = (void *)p->dma_slave_rx;
272
273 *mmc_data = *mmd; 249 *mmc_data = *mmd;
274 } 250
275 dma_priv->filter = shdma_chan_filter; 251 dma_priv->filter = shdma_chan_filter;
276 dma_priv->enable = sh_mobile_sdhi_enable_dma; 252 dma_priv->enable = sh_mobile_sdhi_enable_dma;
277 253