Messages in this thread | | | Date | Thu, 13 Apr 2006 04:30:06 +0200 | From | Rene Herman <> | Subject | Re: Is platform_device_register_simple() deprecated? |
| |
Greg KH wrote:
>> ALSA is using platform_device_register_simple(). Jean Delvare pointed: >> >> http://marc.theaimsgroup.com/?l=linux-kernel&m=113398060508534&w=2 >> >> out, where _simple looks to be slated for removal. Is this indeed the >> case? ALSA isn't using the resources -- doing a manual alloc/add would >> not be a problem... > > Great, care to convert ALSA to use the proper api so we can remove > platform_device_register_simple()?
Sure. Before I go over them though, could you perhaps confirm that just doing a manual alloc/add _is_ this proper API? Ie, something like:
device = platform_device_alloc(NAME, i); if (!device) return -ENOMEM;
error = platform_device_add(device); if (error) { platform_device_put(device); return error; }
(there by the way are still a few users left outside ALSA as well)
Rene. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |