From patchwork Fri Nov 4 16:14:54 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: 9412817 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 58E8960723 for ; Fri, 4 Nov 2016 16:17:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B3E82B1C0 for ; Fri, 4 Nov 2016 16:17:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 402B92B1C6; Fri, 4 Nov 2016 16:17:40 +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=unavailable 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 E6EB12B1C2 for ; Fri, 4 Nov 2016 16:17:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936219AbcKDQRj (ORCPT ); Fri, 4 Nov 2016 12:17:39 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:47880 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936186AbcKDQRi (ORCPT ); Fri, 4 Nov 2016 12:17:38 -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:36 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-14-581cb4a0bbcb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id E7.12.16530.0A4BC185; Sat, 5 Nov 2016 01:17:36 +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:36 +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 7/7] ARM: S3C64XX: Drop initialization of unused struct s3c_audio_pdata fields Date: Fri, 04 Nov 2016 17:14:54 +0100 Message-id: <1478276094-19135-9-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+NgFprHIsWRmVeSWpSXmKPExsVy+t9jQd0FW2QiDB4cNLLYfuQZq8XfScfY LaY+fMJm8W/KDXaL1VP/slq8ebuGyaL/8Wtmi02Pr7FazDi/j8ni8Jt2VouLK74wWbzs289i 0bPhP6sDr8fvX5MYPXbOusvusXjPSyaPTas62Tw2L6n3eDnxN5vHln6geN+WVYwenzfJBXBG udlkpCampBYppOYl56dk5qXbKoWGuOlaKCnkJeam2ipF6PqGBCkplCXmlAJ5RgZowME5wD1Y Sd8uwS1j37/TrAVbxStePudqYDwj3MXIySEhYCLxZ9dXZghbTOLCvfVsXYxcHEICsxglDh78 AuX8YpR4fWkDC0gVm4ChRO/RPkYQW0QgQ+J25xl2kCJmgT+MEgd+dLODJIQFUiRu7dzFBGKz CKhKnD66iA3E5hVwk1j/4ikbxDo5iZPHJrOC2JwC7hJX960AiwsB1cx6+YtlAiPvAkaGVYwS qQXJBcVJ6blGeanlesWJucWleel6yfm5mxjBcfNMegfj4V3uhxgFOBiVeHgTp8hECLEmlhVX 5h5ilOBgVhLhrV8PFOJNSaysSi3Kjy8qzUktPsRoCnTYRGYp0eR8YEznlcQbmpibmBsbWJhb WpoYKYnzNs5+Fi4kkJ5YkpqdmlqQWgTTx8TBKdXA6Hn6qfo9h4wTb6vnrYldwt8XWyf82inX 8YLsv9pKx7Yy951ZDCrpJfulXMo9THo+tfy7o3te6G5GdfrECI/UHvYTb6ce+8D+3ukqT0XN 9+T6yXWVu5oWfZs/1fJ8ojj7zHSzr995120z2Bo6XbL1nH5J8CyZrVfXhRw4Y/fLdUL/pblX 5uf2KLEUZyQaajEXFScCAOIOFWyxAgAA 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 these fields so remove them and remaining initializations. Signed-off-by: Sylwester Nawrocki --- arch/arm/mach-s3c64xx/dev-audio.c | 19 ------------------- include/linux/platform_data/asoc-s3c.h | 5 ----- 2 files changed, 24 deletions(-) diff --git a/arch/arm/mach-s3c64xx/dev-audio.c b/arch/arm/mach-s3c64xx/dev-audio.c index b577833..a3f39dd 100644 --- a/arch/arm/mach-s3c64xx/dev-audio.c +++ b/arch/arm/mach-s3c64xx/dev-audio.c @@ -58,9 +58,6 @@ static int s3c64xx_i2s_cfg_gpio(struct platform_device *pdev) static struct s3c_audio_pdata i2s0_pdata = { .cfg_gpio = s3c64xx_i2s_cfg_gpio, - .dma_filter = pl08x_filter_id, - .dma_playback = DMACH_I2S0_OUT, - .dma_capture = DMACH_I2S0_IN, }; struct platform_device s3c64xx_device_iis0 = { @@ -80,9 +77,6 @@ struct platform_device s3c64xx_device_iis0 = { static struct s3c_audio_pdata i2s1_pdata = { .cfg_gpio = s3c64xx_i2s_cfg_gpio, - .dma_filter = pl08x_filter_id, - .dma_playback = DMACH_I2S1_OUT, - .dma_capture = DMACH_I2S1_IN, }; struct platform_device s3c64xx_device_iis1 = { @@ -102,9 +96,6 @@ struct platform_device s3c64xx_device_iis1 = { static struct s3c_audio_pdata i2sv4_pdata = { .cfg_gpio = s3c64xx_i2s_cfg_gpio, - .dma_filter = pl08x_filter_id, - .dma_playback = DMACH_HSI_I2SV40_TX, - .dma_capture = DMACH_HSI_I2SV40_RX, .type = { .i2s = { .quirks = QUIRK_PRI_6CHAN, @@ -153,9 +144,6 @@ static int s3c64xx_pcm_cfg_gpio(struct platform_device *pdev) static struct s3c_audio_pdata s3c_pcm0_pdata = { .cfg_gpio = s3c64xx_pcm_cfg_gpio, - .dma_filter = pl08x_filter_id, - .dma_capture = DMACH_PCM0_RX, - .dma_playback = DMACH_PCM0_TX, }; struct platform_device s3c64xx_device_pcm0 = { @@ -175,9 +163,6 @@ struct platform_device s3c64xx_device_pcm0 = { static struct s3c_audio_pdata s3c_pcm1_pdata = { .cfg_gpio = s3c64xx_pcm_cfg_gpio, - .dma_filter = pl08x_filter_id, - .dma_playback = DMACH_PCM1_TX, - .dma_capture = DMACH_PCM1_RX, }; struct platform_device s3c64xx_device_pcm1 = { @@ -209,10 +194,6 @@ static int s3c64xx_ac97_cfg_gpe(struct platform_device *pdev) }; static struct s3c_audio_pdata s3c_ac97_pdata = { - .dma_playback = DMACH_AC97_PCMOUT, - .dma_filter = pl08x_filter_id, - .dma_capture = DMACH_AC97_PCMIN, - .dma_capture_mic = DMACH_AC97_MICIN, }; static u64 s3c64xx_ac97_dmamask = DMA_BIT_MASK(32); diff --git a/include/linux/platform_data/asoc-s3c.h b/include/linux/platform_data/asoc-s3c.h index 15bf56e..2d415f6 100644 --- a/include/linux/platform_data/asoc-s3c.h +++ b/include/linux/platform_data/asoc-s3c.h @@ -42,11 +42,6 @@ struct samsung_i2s { */ struct s3c_audio_pdata { int (*cfg_gpio)(struct platform_device *); - dma_filter_fn dma_filter; - void *dma_playback; - void *dma_capture; - void *dma_play_sec; - void *dma_capture_mic; union { struct samsung_i2s i2s; } type;