On Sat, 5 Jul 2008, Thomas Bogendoerfer wrote: > +static __init int sgio2audio_devinit(void) > +{ > + struct platform_device *pd; > + int ret; > + > + pd = platform_device_alloc("sgio2audio", -1); > + if (!pd) > + return -ENOMEM; > + > + ret = platform_device_add(pd); > + if (ret) > + platform_device_put(pd); This sequence is exactly what platform_device_register_simple() does, right? BTW, I'm also still wondering what's the most efficient way of creating platform devices. There's also platform_device_register()... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds