Skip to content

Commit f87c20a

Browse files
lyakhpmundt
authored andcommitted
mfd: pass platform flags down to the tmio_mmc driver
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Ian Molton <ian@mnementh.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent ac8fb3e commit f87c20a

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/mfd/sh_mobile_sdhi.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ static int __init sh_mobile_sdhi_probe(struct platform_device *pdev)
107107
mmc_data->hclk = clk_get_rate(priv->clk);
108108
mmc_data->set_pwr = sh_mobile_sdhi_set_pwr;
109109
mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED;
110+
if (p)
111+
mmc_data->flags = p->tmio_flags;
110112

111113
if (p && p->dma_slave_tx >= 0 && p->dma_slave_rx >= 0) {
112114
priv->param_tx.slave_id = p->dma_slave_tx;

‎include/linux/mfd/sh_mobile_sdhi.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
struct sh_mobile_sdhi_info {
55
int dma_slave_tx;
66
int dma_slave_rx;
7+
unsigned long tmio_flags;
78
void (*set_pwr)(struct platform_device *pdev, int state);
89
};
910

0 commit comments

Comments
 (0)