Return-Path: Date: Mon, 28 Mar 2011 07:39:55 -0700 From: Greg KH To: Par-Gunnar HJALMDAHL Cc: Arnd Bergmann , "devel@driverdev.osuosl.org" , Linus Walleij , "linux-kernel@vger.kernel.org" , "linux-bluetooth@vger.kernel.org" , Pavan Savoy , Vitaly Wool , Alan Cox , Marcel Holtmann , Lukasz Rymanowski , Linus WALLEIJ , Par-Gunnar Hjalmdahl , Lee Jones , Mathieu Poirier Subject: Re: [PATCH v2 2/2] mach-ux500: Add CG2900 devices Message-ID: <20110328143955.GB23892@suse.de> References: <1301302992-10671-1-git-send-email-par-gunnar.p.hjalmdahl@stericsson.com> <201103281500.38954.arnd@arndb.de> <20110328141237.GB19350@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-ID: On Mon, Mar 28, 2011 at 04:29:44PM +0200, Par-Gunnar HJALMDAHL wrote: > > > > > > Not exactly what I had in mind, but probably good enough for a start. > > > This adds a dependency from core code to the staging driver now, > > > which shouldn't be there. I suppose we can add > > > > > > "Clean up device registration path to register the main device from > > board code" > > > > > > to the TODO file. > > > > No, please do not make any core code dependant on a staging driver, > > this > > isn't ok, it needs to be stand-alone, or at the least, the rest of the > > kernel needs to be able to be built with no staging drivers enabled. > > > > thanks, > > > > greg k-h > > But how should I then do this? As I understood it I was told that I should > call an init function, but I was not allowed to add any staging folder > inclusion in the board config makefile. And now I can't do any extern > declaration either. I don't really see how I could do it then. Why can't you add a staging folder inclusion? You could do that, and properly set up your .h file so that if the driver is not built, your code still properly builds and runs. thanks, greg k-h