[RFC 1/3] OLPC: Use device tree for platform identification

Daniel Drake dsd at laptop.org
Wed Mar 9 08:13:00 EST 2011


On 4 March 2011 18:01, Andres Salomon <dilinger at queued.net> wrote:
>> +static int __init declare_of_platform_devices(void)
>> +{
>> +     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?  That'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?

Daniel


More information about the devicetree-discuss mailing list