Commit 59b6defa2b2db1b51f772e8ef6af2617463c8f80

Authored by Marek Vasut
Committed by Stefano Babic
1 parent 3a9d879f6f

mxs: mmc: Drop unused members from struct mxsmmc_priv

The clock data are not used by the driver, drop them.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andy Fleming <afleming@freescale.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>

Showing 1 changed file with 0 additions and 12 deletions Side-by-side Diff

drivers/mmc/mxsmmc.c
... ... @@ -47,8 +47,6 @@
47 47 struct mxsmmc_priv {
48 48 int id;
49 49 struct mxs_ssp_regs *regs;
50   - uint32_t clkseq_bypass;
51   - uint32_t *clkctrl_ssp;
52 50 uint32_t buswidth;
53 51 int (*mmc_is_wp)(int);
54 52 struct mxs_dma_desc *desc;
... ... @@ -355,8 +353,6 @@
355 353  
356 354 int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int))
357 355 {
358   - struct mxs_clkctrl_regs *clkctrl_regs =
359   - (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE;
360 356 struct mmc *mmc = NULL;
361 357 struct mxsmmc_priv *priv = NULL;
362 358 int ret;
363 359  
364 360  
365 361  
... ... @@ -387,23 +383,15 @@
387 383 switch (id) {
388 384 case 0:
389 385 priv->regs = (struct mxs_ssp_regs *)MXS_SSP0_BASE;
390   - priv->clkseq_bypass = CLKCTRL_CLKSEQ_BYPASS_SSP0;
391   - priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp0;
392 386 break;
393 387 case 1:
394 388 priv->regs = (struct mxs_ssp_regs *)MXS_SSP1_BASE;
395   - priv->clkseq_bypass = CLKCTRL_CLKSEQ_BYPASS_SSP1;
396   - priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp1;
397 389 break;
398 390 case 2:
399 391 priv->regs = (struct mxs_ssp_regs *)MXS_SSP2_BASE;
400   - priv->clkseq_bypass = CLKCTRL_CLKSEQ_BYPASS_SSP2;
401   - priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp2;
402 392 break;
403 393 case 3:
404 394 priv->regs = (struct mxs_ssp_regs *)MXS_SSP3_BASE;
405   - priv->clkseq_bypass = CLKCTRL_CLKSEQ_BYPASS_SSP3;
406   - priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp3;
407 395 break;
408 396 }
409 397