Posted Jun 23, 2011 7:26 UTC (Thu) by Lumag (subscriber, #22579)
Parent article: The platform device API
Just a small addition: for lots of use cases it's better not to register static instance of platform device, but rather allocate it dynamically, via platform_device_register_{simple,data,resndata}() functions or via platform_device_alloc()/platform_device_add().