mmc: sh_mobile_sdhi: prepare for conversion to the shdma base library
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Cc: Chris Ball <cjb@laptop.org> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
This commit is contained in:
Родитель
916001fe33
Коммит
c471270d7a
|
@ -145,10 +145,10 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev)
|
||||||
mmc_data->cd_gpio = p->cd_gpio;
|
mmc_data->cd_gpio = p->cd_gpio;
|
||||||
|
|
||||||
if (p->dma_slave_tx > 0 && p->dma_slave_rx > 0) {
|
if (p->dma_slave_tx > 0 && p->dma_slave_rx > 0) {
|
||||||
priv->param_tx.slave_id = p->dma_slave_tx;
|
priv->param_tx.shdma_slave.slave_id = p->dma_slave_tx;
|
||||||
priv->param_rx.slave_id = p->dma_slave_rx;
|
priv->param_rx.shdma_slave.slave_id = p->dma_slave_rx;
|
||||||
priv->dma_priv.chan_priv_tx = &priv->param_tx;
|
priv->dma_priv.chan_priv_tx = &priv->param_tx.shdma_slave;
|
||||||
priv->dma_priv.chan_priv_rx = &priv->param_rx;
|
priv->dma_priv.chan_priv_rx = &priv->param_rx.shdma_slave;
|
||||||
priv->dma_priv.alignment_shift = 1; /* 2-byte alignment */
|
priv->dma_priv.alignment_shift = 1; /* 2-byte alignment */
|
||||||
mmc_data->dma = &priv->dma_priv;
|
mmc_data->dma = &priv->dma_priv;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче