mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
mmc: wmt-sdmmc: Use GFP_KERNEL instead of hard-coded value
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
This commit is contained in:
parent
03a1685340
commit
6f243f6334
1 changed files with 1 additions and 1 deletions
|
@ -840,7 +840,7 @@ static int wmt_mci_probe(struct platform_device *pdev)
|
||||||
priv->dma_desc_buffer = dma_alloc_coherent(&pdev->dev,
|
priv->dma_desc_buffer = dma_alloc_coherent(&pdev->dev,
|
||||||
mmc->max_blk_count * 16,
|
mmc->max_blk_count * 16,
|
||||||
&priv->dma_desc_device_addr,
|
&priv->dma_desc_device_addr,
|
||||||
208);
|
GFP_KERNEL);
|
||||||
if (!priv->dma_desc_buffer) {
|
if (!priv->dma_desc_buffer) {
|
||||||
dev_err(&pdev->dev, "DMA alloc fail\n");
|
dev_err(&pdev->dev, "DMA alloc fail\n");
|
||||||
ret = -EPERM;
|
ret = -EPERM;
|
||||||
|
|
Loading…
Reference in a new issue