lkml.org 
[lkml]   [2006]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2006-04-13 04:32    [W:0.046 / U:1.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site