media: mtk-vcodec: remove unused dma_attrs
[linux-block.git] / drivers / media / platform / mtk-vcodec / mtk_vcodec_enc_drv.c
index e277b7c23516d4e8500889387e4f2ed6be883360..c7806ecda2ddc8a122b96bf0ed72e8d1554ae635 100644 (file)
@@ -246,7 +246,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
        struct video_device *vfd_enc;
        struct resource *res;
        int i, j, ret;
-       DEFINE_DMA_ATTRS(attrs);
 
        dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
        if (!dev)
@@ -378,9 +377,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
                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",
                        vfd_enc->num);