Re: Is platform_device_register_simple() deprecated?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux