Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5033780ybi; Tue, 30 Jul 2019 12:31:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7jPL8mfI1C0m5PhPm1I5tO1SnZ2v3iAXTxx+YFRYQGInqSqkWGF7murSGeVP3MkrpcFLf X-Received: by 2002:a63:724b:: with SMTP id c11mr31574482pgn.30.1564515071438; Tue, 30 Jul 2019 12:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564515071; cv=none; d=google.com; s=arc-20160816; b=c5293mBuSHEKBnsowIoTd9TEeF6t78hakphOVWmJ/PEMBHdrNpiz/BakG2u2H5ky7V K2y2QkQl0SD3zbTuyOoq+v7eIoFqyd7xSJAfskuQDsCvhID94W4bsib/CbmyKnLZEKtI ZNqoP4qvDZcD/A/+t0uvNm8rgadd5CUjFgDbD/1IaEkXdJ8R6sd3iwgH3ildsN3uPgkl XBT1zhHO5qWRiWVWSLIbVaMHEerswi4oZ0FrM4Jqz3YYGbcggt9n2CQAqQ3sRp0UE+uo lsuvM5Fl3rGw5p98JS9Rmx2KtmTCDGOSEZw2oAkIk3Q235fjSUUMrt5pzR0i/Rqy69uX oyNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Y+Z4pnc0JucsBU6cBRK5vZR18lsIs+7jdcMlSRJldAM=; b=aX5qq677HMJkQd4lsMc320B+R/PrPrmmjSxUFZdIpPYrrtihol31stff/nDBftGOfS 5TGkhZTVu9upDCoGZyQdrd+UOabqEEcU/6WGmb2m48IkFzncz9cbl0jKZEgSooAFJUJF lreYy/JTZS24iuRYs+bfTzGjfc7k7UKQAsoD5Y8mGr5RMERJnGIlUldjgGDU8DsSj8dZ +jj/EE0nqP6yD6n36zkx9E5WFnNW0hW6tIkGJj1kbGE8/d1PzbNqgr5DTc2U/rpK/uGk A3bfCn4HhE+6gmz4SYSM9exLyYlfs7YT5ohHL5dD7+566tT4iR9TiTQbYG8sTvTb05vg mXsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J3J6fSLg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35si29165211plb.249.2019.07.30.12.30.56; Tue, 30 Jul 2019 12:31:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J3J6fSLg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388435AbfG3T3k (ORCPT + 99 others); Tue, 30 Jul 2019 15:29:40 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39316 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727169AbfG3T3i (ORCPT ); Tue, 30 Jul 2019 15:29:38 -0400 Received: by mail-pf1-f193.google.com with SMTP id f17so26363299pfn.6; Tue, 30 Jul 2019 12:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Y+Z4pnc0JucsBU6cBRK5vZR18lsIs+7jdcMlSRJldAM=; b=J3J6fSLgyRAglDa91wM/WVpOub0dsDIGNqdsu1Tea+QoDMMw2jma8/oHcfiQ674cxV SGM7oWPI9HxiZD/zSFxrolfjn7ArdtnRmmMU+e9BgYatHIQBpxtcR++ss8iB6UHaq69T 0ANSCqVVCNzXEKPO5jeo3kbhlSzMhZJipJNOmcNRU2FeHa4Ugjn2ZFEVEw2zF1xI/YMu os/CS4b8e8cLNF43RyPEXshPbDam8jORD/qqygREThewtg1ghM/f8AKfNYZLkXDfVs1+ NVSlY+R1xu/gK7xGenjd36jma6jr6N2VOXQ4GT+0j1PHdAdwqbJT+tk4SvWjJE8b/NHo hd9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Y+Z4pnc0JucsBU6cBRK5vZR18lsIs+7jdcMlSRJldAM=; b=RDu5znhBvXJIjkE8Ie0OBJTNNJYdCVvssOE8LM+KMv4G5TQJ5HnLxYR9WBTBtST+Ov 2iV80V186lochZghik2koEG6gvKwSZCh70NzvFinKROH93e6YlsOG5TI7xIzdi8XKVK9 aOPtFF5k1CL13Slv/edRwkCby1+cfvhNlOS9PSVXR4G/Wz1JoP9ECHbAP/Ze9Ha6PB4b ug6xbGySM9fumttiD85fEEeqzcWB+dhDVAJ7ub1U4WP02OA0zN3IlPFK3qQgZueMAHkn Kymeve+fatgj4fGnsxbypV3cJYHyAo2RDstHuNnmA6e868x8RbweWlThpVhxn63dc34m DllQ== X-Gm-Message-State: APjAAAX0yfw2+Dtvi+4Il+IhxuLgSQsHGtMkaGgBCaPyXDXXgIBvJJ9/ aXd9ijQCqFgDY5ofUP2nq58= X-Received: by 2002:aa7:8817:: with SMTP id c23mr43961590pfo.146.1564514978219; Tue, 30 Jul 2019 12:29:38 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC.domain.name ([106.51.16.0]) by smtp.gmail.com with ESMTPSA id o32sm62411228pje.9.2019.07.30.12.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jul 2019 12:29:37 -0700 (PDT) From: Souptick Joarder To: FlorianSchandinat@gmx.de, b.zolnierkie@samsung.com Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Souptick Joarder Subject: [PATCH] video: fbdev:via: Remove dead code Date: Wed, 31 Jul 2019 01:03:20 +0530 Message-Id: <1564515200-5020-1-git-send-email-jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is dead code since 3.15. If there is no plan to use it further, this can be removed forever. Signed-off-by: Souptick Joarder --- drivers/video/fbdev/via/via-core.c | 43 -------------------------------------- 1 file changed, 43 deletions(-) diff --git a/drivers/video/fbdev/via/via-core.c b/drivers/video/fbdev/via/via-core.c index e2b2062..ffa2ca2 100644 --- a/drivers/video/fbdev/via/via-core.c +++ b/drivers/video/fbdev/via/via-core.c @@ -221,49 +221,6 @@ void viafb_release_dma(void) } EXPORT_SYMBOL_GPL(viafb_release_dma); - -#if 0 -/* - * Copy a single buffer from FB memory, synchronously. This code works - * but is not currently used. - */ -void viafb_dma_copy_out(unsigned int offset, dma_addr_t paddr, int len) -{ - unsigned long flags; - int csr; - - mutex_lock(&viafb_dma_lock); - init_completion(&viafb_dma_completion); - /* - * Program the controller. - */ - spin_lock_irqsave(&global_dev.reg_lock, flags); - viafb_mmio_write(VDMA_CSR0, VDMA_C_ENABLE|VDMA_C_DONE); - /* Enable ints; must happen after CSR0 write! */ - viafb_mmio_write(VDMA_MR0, VDMA_MR_TDIE); - viafb_mmio_write(VDMA_MARL0, (int) (paddr & 0xfffffff0)); - viafb_mmio_write(VDMA_MARH0, (int) ((paddr >> 28) & 0xfff)); - /* Data sheet suggests DAR0 should be <<4, but it lies */ - viafb_mmio_write(VDMA_DAR0, offset); - viafb_mmio_write(VDMA_DQWCR0, len >> 4); - viafb_mmio_write(VDMA_TMR0, 0); - viafb_mmio_write(VDMA_DPRL0, 0); - viafb_mmio_write(VDMA_DPRH0, 0); - viafb_mmio_write(VDMA_PMR0, 0); - csr = viafb_mmio_read(VDMA_CSR0); - viafb_mmio_write(VDMA_CSR0, VDMA_C_ENABLE|VDMA_C_START); - spin_unlock_irqrestore(&global_dev.reg_lock, flags); - /* - * Now we just wait until the interrupt handler says - * we're done. - */ - wait_for_completion_interruptible(&viafb_dma_completion); - viafb_mmio_write(VDMA_MR0, 0); /* Reset int enable */ - mutex_unlock(&viafb_dma_lock); -} -EXPORT_SYMBOL_GPL(viafb_dma_copy_out); -#endif - /* * Do a scatter/gather DMA copy from FB memory. You must have done * a successful call to viafb_request_dma() first. -- 1.9.1