Skip to content

Commit 3e71337

Browse files
lyakhcjb
authored andcommitted
mmc: sdhi: DMA slave ID 0 is invalid
Don't try to allocate DMA resources if the platform didn't specify positive DMA slave IDs. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent 7d8b4c2 commit 3e71337

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mmc/host/sh_mobile_sdhi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev)
9292
mmc_data->ocr_mask = p->tmio_ocr_mask;
9393
mmc_data->capabilities |= p->tmio_caps;
9494

95-
if (p->dma_slave_tx >= 0 && p->dma_slave_rx >= 0) {
95+
if (p->dma_slave_tx > 0 && p->dma_slave_rx > 0) {
9696
priv->param_tx.slave_id = p->dma_slave_tx;
9797
priv->param_rx.slave_id = p->dma_slave_rx;
9898
priv->dma_priv.chan_priv_tx = &priv->param_tx;

0 commit comments

Comments
 (0)