Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sh_mmcif: Remove unused clk_ctrl2_present from the platform data

There are currently no users of the clk_ctrl2_present member from the
platform data, so let's remove it.

Note, as some of the sh_mmcif variants may support clk_ctrl2, 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 <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

+1 -2
+1 -1
drivers/mmc/host/sh_mmcif.c
··· 1428 1428 host->addr = reg; 1429 1429 host->timeout = msecs_to_jiffies(10000); 1430 1430 host->ccs_enable = true; 1431 - host->clk_ctrl2_enable = pd && pd->clk_ctrl2_present; 1431 + host->clk_ctrl2_enable = false; 1432 1432 1433 1433 host->pd = pdev; 1434 1434
-1
include/linux/mmc/sh_mmcif.h
··· 34 34 struct sh_mmcif_plat_data { 35 35 unsigned int slave_id_tx; /* embedded slave_id_[tr]x */ 36 36 unsigned int slave_id_rx; 37 - bool clk_ctrl2_present : 1; 38 37 u8 sup_pclk; /* 1 :SH7757, 0: SH7724/SH7372 */ 39 38 unsigned long caps; 40 39 u32 ocr;