Re: Is platform_device_register_simple() deprecated?
From: Rene Herman
Date: Wed Apr 12 2006 - 22:30:30 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/