Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755294AbbBTVXO (ORCPT ); Fri, 20 Feb 2015 16:23:14 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:46724 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754507AbbBTVXN (ORCPT ); Fri, 20 Feb 2015 16:23:13 -0500 Date: Fri, 20 Feb 2015 16:23:08 -0500 (EST) Message-Id: <20150220.162308.1371481451879675649.davem@davemloft.net> To: arnd@arndb.de Cc: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, dbaryshkov@gmail.com, netdev@vger.kernel.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: smc91x: improve neponset hack From: David Miller In-Reply-To: <5754481.gFE9BvLjh0@wuerfel> References: <5763365.j5Nvv4LgM3@wuerfel> <20150219003549.GY8656@n2100.arm.linux.org.uk> <5754481.gFE9BvLjh0@wuerfel> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.7 (shards.monkeyblade.net [149.20.54.216]); Fri, 20 Feb 2015 13:23:13 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1397 Lines: 33 From: Arnd Bergmann Date: Fri, 20 Feb 2015 16:47:06 +0100 > On Thursday 19 February 2015 00:35:49 Russell King - ARM Linux wrote: >> On Wed, Feb 18, 2015 at 08:47:30PM +0100, Arnd Bergmann wrote: >> > The smc91x driver tries to support multiple platforms at compile >> > time, but they are mutually exclusive at runtime, and not clearly >> > defined. >> >> I'd prefer to rework this to fix that properly. From what I remember, >> the whole SA11x0 stuff in this driver was a mess. > > I guess that's reasonable. I've looked through the driver and it seems we > did most of the multiplatform work but left a few things alone that should > have been converted a long time ago. > > Can you check if the approach below makes sense to you? > > I've verified that each machine that defines an smc91x device now sets > the correct platform data, irq flags and access width, which should be > enough to collapse all the CONFIG_ARM cases into one. > > Signed-off-by: Arnd Bergmann This is a nice cleanup but for 'net' to fix the build error I prefer the original one-line patch. We can apply this thing here to net-next. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/