mmc: wmt-sdmmc: Use GFP_KERNEL instead of hard-coded value

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
Axel Lin 2014-04-28 08:58:31 +08:00 • committed by Chris Ball
commit 6f243f6334

View file

@ -840,7 +840,7 @@ static int wmt_mci_probe(struct platform_device *pdev)
priv->dma_desc_buffer = dma_alloc_coherent(&pdev->dev,
mmc->max_blk_count * 16,
&priv->dma_desc_device_addr,
208);
GFP_KERNEL);
if (!priv->dma_desc_buffer) {
dev_err(&pdev->dev, "DMA alloc fail\n");
ret = -EPERM;