Commit c742a195 authored by Fei Shao's avatar Fei Shao Committed by Mauro Carvalho Chehab

media: mediatek: vcodec: Replace dev_name in error string

mtk_v4l2_err() already uses dev_err(), so don't print the device name
again. Print the function name instead.
Signed-off-by: default avatarFei Shao <fshao@chromium.org>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: default avatarSebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 8a718752
...@@ -67,7 +67,7 @@ int mtk_vcodec_mem_alloc(void *priv, struct mtk_vcodec_mem *mem) ...@@ -67,7 +67,7 @@ int mtk_vcodec_mem_alloc(void *priv, struct mtk_vcodec_mem *mem)
mem->va = dma_alloc_coherent(&plat_dev->dev, size, &mem->dma_addr, GFP_KERNEL); mem->va = dma_alloc_coherent(&plat_dev->dev, size, &mem->dma_addr, GFP_KERNEL);
if (!mem->va) { if (!mem->va) {
mtk_v4l2_err(plat_dev, "%s dma_alloc size=%ld failed!", mtk_v4l2_err(plat_dev, "%s dma_alloc size=%ld failed!",
dev_name(&plat_dev->dev), size); __func__, size);
return -ENOMEM; return -ENOMEM;
} }
...@@ -99,7 +99,7 @@ void mtk_vcodec_mem_free(void *priv, struct mtk_vcodec_mem *mem) ...@@ -99,7 +99,7 @@ void mtk_vcodec_mem_free(void *priv, struct mtk_vcodec_mem *mem)
if (!mem->va) { if (!mem->va) {
mtk_v4l2_err(plat_dev, "%s dma_free size=%ld failed!", mtk_v4l2_err(plat_dev, "%s dma_free size=%ld failed!",
dev_name(&plat_dev->dev), size); __func__, size);
return; return;
} }
......
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