From: Paul Mundt Subject: Re: [PATCH 01/04] Driver Core: Add platform device arch data Date: Fri, 29 May 2009 14:51:05 +0900 Message-ID: <20090529055105.GD1122__11442.552021663$1243579391$gmane$org@linux-sh.org> References: <20090527100625.29671.43166.sendpatchset@rx1.opensource.se> <20090527100633.29671.83531.sendpatchset@rx1.opensource.se> <200905282326.57431.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Magnus Damm Cc: paul@pwsan.com, linux-sh@vger.kernel.org, gregkh@suse.de, linux-pm@lists.linux-foundation.org List-Id: linux-pm@vger.kernel.org On Fri, May 29, 2009 at 02:07:35PM +0900, Magnus Damm wrote: > 2009/5/29 Rafael J. Wysocki : > > On Wednesday 27 May 2009, Magnus Damm wrote: > >> --- 0001/arch/Kconfig > >> +++ work/arch/Kconfig 2009-05-15 14:51:35.000000000 +0900 > >> @@ -112,3 +112,6 @@ config HAVE_DMA_API_DEBUG > >> > >> ?config HAVE_DEFAULT_NO_SPIN_MUTEXES > >> ? ? ? bool > >> + > >> +config HAVE_PLATFORM_DEVICE_ARCHDATA > > > > Hmm. ?Do we really need yet another CONFIG_ option for that? > > I don't think we need a total of 3 different config options for the > platform device pm stuff, but I do think it makes sense to handle the > platform archdata separately. Not sure which is the best way though, > the #ifdefery is not very pretty. Maybe the best solution is just to > drop the Kconfig stuff and add empty structures to all architecture > versions of asm/device.h. > A stub in asm-generic/device.h will cover the majority of cases. That is much cleaner than adding to the Kconfig mess.