Skip to content

Commit dba4bb4

Browse files
committed
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 <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Reviewed-by: Linus Walleij <[email protected]>
1 parent 8020f71 commit dba4bb4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/mmc/host/sh_mmcif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ static int sh_mmcif_probe(struct platform_device *pdev)
14281428
host->addr = reg;
14291429
host->timeout = msecs_to_jiffies(10000);
14301430
host->ccs_enable = true;
1431-
host->clk_ctrl2_enable = pd && pd->clk_ctrl2_present;
1431+
host->clk_ctrl2_enable = false;
14321432

14331433
host->pd = pdev;
14341434

include/linux/mmc/sh_mmcif.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
struct sh_mmcif_plat_data {
3535
unsigned int slave_id_tx; /* embedded slave_id_[tr]x */
3636
unsigned int slave_id_rx;
37-
bool clk_ctrl2_present : 1;
3837
u8 sup_pclk; /* 1 :SH7757, 0: SH7724/SH7372 */
3938
unsigned long caps;
4039
u32 ocr;

0 commit comments

Comments
 (0)