Skip to content

Commit

Permalink
mmc: sh_mmcif: Remove unused ccs_unsupported from the platform data
Browse files Browse the repository at this point in the history
There are currently no users of the ccs_unsupported member from the
platform data, so let's remove it.

Note, as some of the sh_mmcif variants may not support ccs, let's keep the
current code in the driver, which deals with this. For future support, we
should invent a DT binding instead, but let's leave that until it's needed.

Cc: Kuninori Morimoto <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
  • Loading branch information
storulf committed Feb 13, 2017
1 parent 5957eeb commit 8020f71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/mmc/host/sh_mmcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ static int sh_mmcif_probe(struct platform_device *pdev)
host->mmc = mmc;
host->addr = reg;
host->timeout = msecs_to_jiffies(10000);
host->ccs_enable = !pd || !pd->ccs_unsupported;
host->ccs_enable = true;
host->clk_ctrl2_enable = pd && pd->clk_ctrl2_present;

host->pd = pdev;
Expand Down
1 change: 0 additions & 1 deletion include/linux/mmc/sh_mmcif.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
struct sh_mmcif_plat_data {
unsigned int slave_id_tx; /* embedded slave_id_[tr]x */
unsigned int slave_id_rx;
bool ccs_unsupported : 1;
bool clk_ctrl2_present : 1;
u8 sup_pclk; /* 1 :SH7757, 0: SH7724/SH7372 */
unsigned long caps;
Expand Down

0 comments on commit 8020f71

Please sign in to comment.