diff options
Diffstat (limited to 'drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c')
-rw-r--r-- | drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c index e80123cba406..060c0ad6243a 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c | |||
@@ -49,7 +49,7 @@ int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data, | |||
49 | struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; | 49 | struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; |
50 | struct device *dev = &ctx->dev->plat_dev->dev; | 50 | struct device *dev = &ctx->dev->plat_dev->dev; |
51 | 51 | ||
52 | mem->va = dma_zalloc_coherent(dev, size, &mem->dma_addr, GFP_KERNEL); | 52 | mem->va = dma_alloc_coherent(dev, size, &mem->dma_addr, GFP_KERNEL); |
53 | if (!mem->va) { | 53 | if (!mem->va) { |
54 | mtk_v4l2_err("%s dma_alloc size=%ld failed!", dev_name(dev), | 54 | mtk_v4l2_err("%s dma_alloc size=%ld failed!", dev_name(dev), |
55 | size); | 55 | size); |