Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753804Ab0K3PWH (ORCPT ); Tue, 30 Nov 2010 10:22:07 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:57919 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753578Ab0K3PWF (ORCPT ); Tue, 30 Nov 2010 10:22:05 -0500 From: Arnd Bergmann To: Linus Walleij Subject: Re: [PATCH 09/10] MCDE: Add build files and bus Date: Tue, 30 Nov 2010 16:21:47 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.35-16-generic; KDE/4.3.2; x86_64; ; ) Cc: Marcus LORENTZON , "linux-arm-kernel@lists.infradead.org" , Jimmy RUBIN , "linux-media@vger.kernel.org" , Dan JOHANSSON , dri-devel@lists.freedesktop.org, Linux Kernel Mailing List , Greg KH References: <201011261224.59490.arnd@arndb.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011301621.48140.arnd@arndb.de> X-Provags-ID: V02:K0:RhJGaBtlJsiSiHNy0EMMxLdPx39fg2ppRxZKxsKXgt+ tL3wF/obuv5GD8bQJ0H5L1qw0agb1U80ZWZrQp19mFTIYKIbFt sVJhxLjpDii31E9rFg1/4UckSba5a97DnIYhci1md3Fkf6BsSY QEMKA2e5YV4xCI/FfosjWhDxWx4prkxrQRsRGT7RLG5aMrpu/M IHjOv8gtVyuEeCMegUDlQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1848 Lines: 42 On Tuesday 30 November 2010, Linus Walleij wrote: > 2010/11/26 Arnd Bergmann : > > > * When you say that the devices are static, I hope you do not mean > > static in the C language sense. We used to allow devices to be > > declared as "static struct" and registered using > > platform_device_register (or other bus specific functions). This > > is no longer valid and we are removing the existing users, do not > > add new ones. When creating a platform device, use > > platform_device_register_simple or platform_device_register_resndata. > > Is this part of the generic ARM runtime multi-platform kernel > and device trees shebang? > > The Ux500 still isn't in that sector, it needs extensive rewriting > of arch/arm/mach-ux500 to be done first, so as to support e.g. > U8500 and U5500 with a single kernel image. > > Trying to skin that cat that as part of this review is a bit too > much to ask IMO, I'd rather have the author of this driver > adapt to whatever platform data registration mechanism is > in place for the merge window. Else it needs fixing as part > of a bigger endavour to root out compile-time platform > configuration. The 'no static devices' rule is something that Greg brought up at the embedded developer session during PlumbersConf this year, I wasn't aware of the problem before that either. It is not related to the multi-platform kernel work and it's not ARM specific. Maybe Greg can give a short explanation of the impact of this. AFAIR, static device definitions still work, but there are plans to remove that capability in the future. Arnd -- 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/