Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1605d271 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Linus Torvalds
Browse files

media: mtk-vcodec: remove unused dma_attrs

parent 4b9d314c
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -246,7 +246,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
	struct video_device *vfd_enc;
	struct video_device *vfd_enc;
	struct resource *res;
	struct resource *res;
	int i, j, ret;
	int i, j, ret;
	DEFINE_DMA_ATTRS(attrs);


	dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
	dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
	if (!dev)
	if (!dev)
@@ -378,9 +377,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
		goto err_enc_reg;
		goto err_enc_reg;
	}
	}


	/* Avoid the iommu eat big hunks */
	dma_set_attr(DMA_ATTR_ALLOC_SINGLE_PAGES, &attrs);

	mtk_v4l2_debug(0, "encoder registered as /dev/video%d",
	mtk_v4l2_debug(0, "encoder registered as /dev/video%d",
			vfd_enc->num);
			vfd_enc->num);