All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@keyaccess.nl>
To: Greg KH <gregkh@suse.de>
Cc: Russell King <rmk+lkml@arm.linux.org.uk>,
	Dmitry Torokhov <dtor_core@ameritech.net>,
	Jean Delvare <khali@linux-fr.org>, Takashi Iwai <tiwai@suse.de>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Is platform_device_register_simple() deprecated?
Date: Thu, 13 Apr 2006 04:30:06 +0200	[thread overview]
Message-ID: <443DB7AE.4090605@keyaccess.nl> (raw)
In-Reply-To: <20060412214108.GA12480@suse.de>

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.

      parent reply	other threads:[~2006-04-13  2:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12 17:50 Is platform_device_register_simple() deprecated? Rene Herman
2006-04-12 19:18 ` Russell King
2006-04-12 21:41 ` Greg KH
2006-04-12 23:09   ` Kumar Gala
2006-04-12 23:30     ` Greg KH
2006-04-13 18:32       ` Kumar Gala
2006-04-13  2:30   ` Rene Herman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=443DB7AE.4090605@keyaccess.nl \
    --to=rene.herman@keyaccess.nl \
    --cc=dtor_core@ameritech.net \
    --cc=gregkh@suse.de \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+lkml@arm.linux.org.uk \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.