From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [RFC 1/3] OLPC: Use device tree for platform identification Date: Sat, 12 Mar 2011 00:45:30 -0700 Message-ID: <20110312074530.GA9347@angua.secretlab.ca> References: <20110304171214.2B5C69D401D@zog.reactivated.net> <20110304100137.473b8d04@debxo> <20110308193546.151521a9@queued.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20110308193546.151521a9-pFFUokh25LWsTnJN9+BGXg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Andres Salomon Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Daniel Drake List-Id: devicetree@vger.kernel.org On Tue, Mar 08, 2011 at 07:35:46PM -0800, Andres Salomon wrote: > On Tue, 8 Mar 2011 21:13:00 +0000 > Daniel Drake wrote: > = > > On 4 March 2011 18:01, Andres Salomon wrote: > > >> +static int __init declare_of_platform_devices(void) > > >> +{ > > >> + =A0 =A0 return of_platform_bus_probe(NULL, of_ids, NULL); > > >> +} > > >> +device_initcall(declare_of_platform_devices); > > > > > > How about 'olpc_create_platform_devices' or some such name? =A0That's > > > what's really happening here, right? > > = > > The reason I called it declare_of_platform_devices is because thats > > what all the other platforms do (do a git grep). do you still think it > > should be renamed? > > = > = > Yes, unless there's some reason why it should be named "declare". I'm > assuming the names used in ppc platform device code are like that for > historical reasons? Probably, but they probably aren't very good reasons. Name it what makes sense for OLPC. An olpc_ prefix certainly makes sense to me. BTW, using a device_initcall() isn't very multiplatform friendly. It will get called regardless of the machine that the kernel is booted on (OLPC or no) which probably isn't what you want. g.