Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760287AbcLPJYm (ORCPT ); Fri, 16 Dec 2016 04:24:42 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:56999 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760122AbcLPJY3 (ORCPT ); Fri, 16 Dec 2016 04:24:29 -0500 From: Arnd Bergmann To: Marc Kleine-Budde Cc: Shawn Guo , linux-kernel@vger.kernel.org, Sascha Hauer , Fabio Estevam , Alexander Kurz , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: imx: remove unused device definitions Date: Fri, 16 Dec 2016 10:23:43 +0100 Message-ID: <3673316.UJiiIZbYgE@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <7e077d23-eec1-6a6a-9318-84a5543d684d@pengutronix.de> References: <20161216090533.2195228-1-arnd@arndb.de> <7e077d23-eec1-6a6a-9318-84a5543d684d@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:+2K6bMzKejOI4MxdvPhFzGGfiULfUa45edpWCN89j89UPf/3sCG cRt1rCKLXVC+j74sMDVVmI+yysbUNgCaDzmMbqAvoP5nuzx5hJUnjpkHt/5SswBj+KRB2+h 25TNbcQ9bmHTCu46hKcu391xpobqOGcKv1W8RkvvM7Vflm+V8NbkGQceLdLNR3K5gGfLrNg xPl0BEUVeK3s2noTHbafQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:geyP/rEtEuM=:qPH1CA3upCGnqw5jVexSgp i0jHlgUkpsz84KTtDgvBxERO4+8Ovgayxheabhv2IisAriKzAkbB121ZgN933kyNGnn6cmwFZ Xkjh2vBJ6ws/OHLk/561kSaIevtqWGarJUzioRSI8X+ZwQJng6Ahz4QzURSglbPx9yZ6KOEx+ Wjk2ycHMlurS0iCM2i+R7OK2xRbjL91OClf5bXyDHtE9xzKulC6hryzp0gzvjzvkrZK2VJfeM b/Y+cS3O5ro6uIToA7rIJ9suQAKZ+sMD5sMsnazBpkCuAQ/cmhjOzWM43w0b5W4zQER0GmCca TX/caTJoekiT5G5cY2hXPDJVV8ei58tVprBMShUrmF62nsnWXkiBEGCUmyt6LQTe2cy64ozD3 fRkAKFUi9IuLeQh5TImibPAtP9X8wgVkwG2E1pZDf/4N+TANlMbmEXt4hINh1+EZZuLBPawh7 Qff4r2iFn5S1ySd0fiZ0lw+UiaEE9NAZolGsdr9VcaiHUZRpHkZth26ZaU2gvPO9DK+OoagK8 qfdbt0l2FRI270VP9gEL9eB0HzYcisrBMm4mU44RTeO5ugYzyTW/DJiokHy2Aud6TJGfL/9s3 86sLEhTvlM7UaqijyaJ69kwMIMQvg1k7QpP9OzJCKgXiIeuCb5HYdQyFW/7ww4AUMOLM51qxR ECdibFAulculJXGh3fwmGb/DmO8kR8bPexENHbm/q3IhcQfhDwENnt5aQfb2ScYCYl/R/SxTa vp03X8v7GmLdQA0M Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1526 Lines: 40 On Friday, December 16, 2016 10:10:49 AM CET Marc Kleine-Budde wrote: > On 12/16/2016 10:05 AM, Arnd Bergmann wrote: > > I stumbled over these during build testing, they are evidently > > not referenced anywhere any more. > > > > Signed-off-by: Arnd Bergmann > > --- > > arch/arm/mach-imx/devices/platform-flexcan.c | 9 --------- > > arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c | 10 ---------- > > 2 files changed, 19 deletions(-) > > > > diff --git a/arch/arm/mach-imx/devices/platform-flexcan.c b/arch/arm/mach-imx/devices/platform-flexcan.c > > index 55d61eaf63c6..8a1a2fc4ce10 100644 > > --- a/arch/arm/mach-imx/devices/platform-flexcan.c > > +++ b/arch/arm/mach-imx/devices/platform-flexcan.c > > @@ -19,15 +19,6 @@ > > #define imx_flexcan_data_entry(soc, _id, _hwid, _size) \ > > [_id] = imx_flexcan_data_entry_single(soc, _id, _hwid, _size) > > > > -#ifdef CONFIG_SOC_IMX25 > > -const struct imx_flexcan_data imx25_flexcan_data[] __initconst = { > > -#define imx25_flexcan_data_entry(_id, _hwid) \ > > - imx_flexcan_data_entry(MX25, _id, _hwid, SZ_16K) > > - imx25_flexcan_data_entry(0, 1), > > - imx25_flexcan_data_entry(1, 2), > > -}; > > -#endif /* ifdef CONFIG_SOC_IMX25 */ > > - > > #ifdef CONFIG_SOC_IMX35 > > const struct imx_flexcan_data imx35_flexcan_data[] __initconst = { > > #define imx35_flexcan_data_entry(_id, _hwid) \ > > What about the imx35 variant? > It's used from here: arch/arm/mach-imx/mach-pcm043.c: imx35_add_flexcan1(); Arnd