From patchwork Fri Nov 4 16:14:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9412813 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 851FA60723 for ; Fri, 4 Nov 2016 16:17:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73AF22B1C0 for ; Fri, 4 Nov 2016 16:17:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62EC22B1C9; Fri, 4 Nov 2016 16:17:34 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17EED2B1C2 for ; Fri, 4 Nov 2016 16:17:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936217AbcKDQRd (ORCPT ); Fri, 4 Nov 2016 12:17:33 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:56823 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936186AbcKDQRc (ORCPT ); Fri, 4 Nov 2016 12:17:32 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG401J4GL96LL80@mailout3.samsung.com>; Sat, 05 Nov 2016 01:17:30 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-0f-581cb49a38d1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id C6.12.16530.A94BC185; Sat, 5 Nov 2016 01:17:30 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OG400JDIL52T940@mmp2.samsung.com>; Sat, 05 Nov 2016 01:17:30 +0900 (KST) From: Sylwester Nawrocki To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org Cc: vinod.koul@intel.com, broonie@kernel.org, ckeepax@opensource.wolfsonmicro.com, ym0914@gmail.com, arnd@arndb.de, kgene@kernel.org, javier@osg.samsung.com, andi.shyti@samsung.com, sbkim73@samsung.com, Sylwester Nawrocki Subject: [PATCH RFC 6/7] ARM: S3C64XX: Drop unused DMA fields from struct s3c64xx_spi_csinfo Date: Fri, 04 Nov 2016 17:14:53 +0100 Message-id: <1478276094-19135-8-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1478276094-19135-1-git-send-email-s.nawrocki@samsung.com> References: <1478276094-19135-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsVy+t9jQd1ZW2QiDL70KVlsP/KM1eLvpGPs FlMfPmGz+DflBrvF6ql/WS3evF3DZNH/+DWzxabH11gtZpzfx2Rx+E07q8XFFV+YLF727Wex 6Nnwn9WB1+P3r0mMHjtn3WX3WLznJZPHplWdbB6bl9R7vJz4m81jSz9QvG/LKkaPz5vkAjij 3GwyUhNTUosUUvOS81My89JtlUJD3HQtlBTyEnNTbZUidH1DgpQUyhJzSoE8IwM04OAc4B6s pG+X4JZxfGsrS8Fe7or56z4xNzDe5+xi5OSQEDCROLLsGguELSZx4d56ti5GLg4hgVmMEku2 7GKHcH4xStw61cUMUsUmYCjRe7SPEcQWEciQuN15BqyIWeAPo8SBH93sIAlhgTiJzZs/gRWx CKhKnDv3gAnE5hVwk9j8/iUzxDo5iZPHJrOC2JwC7hJX961gA7GFgGpmvfzFMoGRdwEjwypG idSC5ILipPRco7zUcr3ixNzi0rx0veT83E2M4Mh5Jr2D8fAu90OMAhyMSjy8iVNkIoRYE8uK K3MPMUpwMCuJ8NavBwrxpiRWVqUW5ccXleakFh9iNAU6bCKzlGhyPjCq80riDU3MTcyNDSzM LS1NjJTEeRtnPwsXEkhPLEnNTk0tSC2C6WPi4JRqYMzrklJZLOl4NWmtpmCy/GLLwCgGq5nc ij7utxuWxzbaOjU3/GmSd7//0kzpv8GlxK18rnfWzGYVf+aq5F+7clZhc3rMlHyeNAsT36NX q4sZ77AZ9ax4Zcl3U7JsQ9TCdVvcoj55Hrn87/uxZ+xzLPZ+YujKvOy1bvsyt4+L7VKk5P5E S7yUUGIpzkg01GIuKk4EAIUzvp+yAgAA X-MTR: 20000000000000000@CPGS Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no drivers using those fields so remove them and remaining initializations. Signed-off-by: Sylwester Nawrocki --- arch/arm/plat-samsung/devs.c | 9 --------- include/linux/platform_data/spi-s3c64xx.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index e93aa67..4e14bf6 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c @@ -1124,15 +1124,6 @@ void __init s3c64xx_spi0_set_platdata(int (*cfg_gpio)(void), int src_clk_nr, pd.num_cs = num_cs; pd.src_clk_nr = src_clk_nr; pd.cfg_gpio = (cfg_gpio) ? cfg_gpio : s3c64xx_spi0_cfg_gpio; - pd.dma_tx = (void *)DMACH_SPI0_TX; - pd.dma_rx = (void *)DMACH_SPI0_RX; -#if defined(CONFIG_PL330_DMA) - pd.filter = pl330_filter; -#elif defined(CONFIG_S3C64XX_PL080) - pd.filter = pl08x_filter_id; -#elif defined(CONFIG_S3C24XX_DMAC) - pd.filter = s3c24xx_dma_filter; -#endif s3c_set_platdata(&pd, sizeof(pd), &s3c64xx_device_spi0); } diff --git a/include/linux/platform_data/spi-s3c64xx.h b/include/linux/platform_data/spi-s3c64xx.h index 5c1e21c..da79774 100644 --- a/include/linux/platform_data/spi-s3c64xx.h +++ b/include/linux/platform_data/spi-s3c64xx.h @@ -40,9 +40,6 @@ struct s3c64xx_spi_info { int num_cs; bool no_cs; int (*cfg_gpio)(void); - dma_filter_fn filter; - void *dma_tx; - void *dma_rx; }; /**