Commit 16f2e0c6 authored by Phong LE's avatar Phong LE Committed by Ulf Hansson

mmc: mediatek: Fixed size in dma_free_coherent

The dma gpd dma_free_coherent call size in invalid.

Fixes: 20848903 ("mmc: mediatek: Add Mediatek MMC driver")
Signed-off-by: default avatarPhong LE <ple@baylibre.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent c00a231b
...@@ -1774,7 +1774,7 @@ static int msdc_drv_remove(struct platform_device *pdev) ...@@ -1774,7 +1774,7 @@ static int msdc_drv_remove(struct platform_device *pdev)
pm_runtime_disable(host->dev); pm_runtime_disable(host->dev);
pm_runtime_put_noidle(host->dev); pm_runtime_put_noidle(host->dev);
dma_free_coherent(&pdev->dev, dma_free_coherent(&pdev->dev,
sizeof(struct mt_gpdma_desc), 2 * sizeof(struct mt_gpdma_desc),
host->dma.gpd, host->dma.gpd_addr); host->dma.gpd, host->dma.gpd_addr);
dma_free_coherent(&pdev->dev, MAX_BD_NUM * sizeof(struct mt_bdma_desc), dma_free_coherent(&pdev->dev, MAX_BD_NUM * sizeof(struct mt_bdma_desc),
host->dma.bd, host->dma.bd_addr); host->dma.bd, host->dma.bd_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment