diff options
author | Fabien Dessenne <fabien.dessenne@st.com> | 2018-05-15 03:37:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-25 15:35:19 -0400 |
commit | 2732bb765f14ebc87d1066c4703423743dfe91b0 (patch) | |
tree | f53091c9afd73c1dc4f36b16109d65168c8f912f /drivers/media/platform/sti/bdisp/bdisp-v4l2.c | |
parent | 6aecad62670bb728d9616c672114d1627f877f33 (diff) |
media: bdisp: don't use GFP_DMA
Set the DMA_MASK and stop using the GFP_DMA flag
Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/sti/bdisp/bdisp-v4l2.c')
-rw-r--r-- | drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c index bf4ca16db440..66b64096f5de 100644 --- a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c +++ b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c @@ -1297,6 +1297,10 @@ static int bdisp_probe(struct platform_device *pdev) if (!bdisp) return -ENOMEM; + ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32)); + if (ret) + return ret; + bdisp->pdev = pdev; bdisp->dev = dev; platform_set_drvdata(pdev, bdisp); |