From patchwork Wed Jul 13 08:40:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9227097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 74D4A6075D for ; Wed, 13 Jul 2016 08:42:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 64F39272AA for ; Wed, 13 Jul 2016 08:42:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59CD427813; Wed, 13 Jul 2016 08:42:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 17F67272AA for ; Wed, 13 Jul 2016 08:42:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNFkK-00026B-Di; Wed, 13 Jul 2016 08:42:20 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNFk8-0001wa-Cw; Wed, 13 Jul 2016 08:42:09 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OA80095UW5MQ130@mailout2.w1.samsung.com>; Wed, 13 Jul 2016 09:41:46 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-db-5785feca9f99 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 06.80.05254.ACEF5875; Wed, 13 Jul 2016 09:41:46 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OA800KINW5J0E10@eusync3.samsung.com>; Wed, 13 Jul 2016 09:41:46 +0100 (BST) From: Krzysztof Kozlowski To: Andrew Morton Subject: [PATCH v6 01/46] [media] mtk-vcodec: Remove unused dma_attrs Date: Wed, 13 Jul 2016 10:40:52 +0200 Message-id: <1468399300-5399-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1468399167-28083-1-git-send-email-k.kozlowski@samsung.com> References: <1468399167-28083-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFLMWRmVeSWpSXmKPExsVy+t/xq7qn/rWGG/xcLG8xZ/0aNouNM9az WpyesIjJ4vULQ4tNj6+xWlzeNYfNomfDViCr+SKjRVOLscWyTX+YHLg8ds66y+6xeYWWx6ZV nWweJ2b8ZvHYvKTeo2/LKkaPz5vkAtijuGxSUnMyy1KL9O0SuDJe/W1jLbjNUdF75j9jA+M6 9i5GTg4JAROJM2fPsEDYYhIX7q1n62Lk4hASWMoosfrTNhYIp5FJYu7dS2AdbALGEpuXL2ED sUUEdCVWPd/FDFLELPCASeLXoddgo4QFXCW2PN/MCmKzCKhKdO9+yARi8wq4Sdw9cpYVYp2c xMljk8FsTgEPiSfz7zKD2EIC7hITr/1mmsDIu4CRYRWjaGppckFxUnquoV5xYm5xaV66XnJ+ 7iZGSAh+2cG4+JjVIUYBDkYlHl5GkdZwIdbEsuLK3EOMEhzMSiK8T/8ChXhTEiurUovy44tK c1KLDzFKc7AoifPO3fU+REggPbEkNTs1tSC1CCbLxMEp1cDosOnXoZpiDfbN1UbbFfiZyref n36cZ+0Mq+nP2QXKzT/1r2yvr71UMjlQItxjDlfN+enRFSn1xwrnOEbxTFokm7/mv8frDJOW x/Y+1eWvW/6ZLmL6dnRdUKmD0a6l6W81+zKrfA/sTq1Ynln8T407pk3w7SLnFEmFJxzLso5s DI9UKpkcFq7EUpyRaKjFXFScCADUphruPQIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160713_014208_603444_160A9815 X-CRM114-Status: GOOD ( 13.23 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org, hch@infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The local variable dma_attrs is set but never read. Signed-off-by: Krzysztof Kozlowski --- Changes since v5: New patch. --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c index 60b0bde232f4..ae1eb8fde7f8 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c @@ -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) @@ -380,9 +379,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);