From: Greg KH <greg@kroah.com>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] [DRIVER MODEL] Improved dynamically allocated platform_device interface
Date: Sat, 5 Nov 2005 07:42:10 -0800 [thread overview]
Message-ID: <20051105154210.GA20598@kroah.com> (raw)
In-Reply-To: <20051105105628.GE28438@flint.arm.linux.org.uk>
On Sat, Nov 05, 2005 at 10:56:28AM +0000, Russell King wrote:
> Re-jig the simple platform device support to allow private data
> to be attached to a platform device, as well as allowing the
> parent device to be set.
>
> Example usage:
>
> pdev = platform_device_alloc("mydev", id);
> if (pdev) {
> err = platform_device_add_resources(pdev, &resources,
> ARRAY_SIZE(resources));
> if (err == 0)
> err = platform_device_add_data(pdev, &platform_data,
> sizeof(platform_data));
> if (err == 0)
> err = platform_device_add(pdev);
> } else {
> err = -ENOMEM;
> }
> if (err)
> platform_device_put(pdev);
>
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
These look great, want me to add them to my tree and get them to Linus
before 2.6.15?
thanks,
greg k-h
next prev parent reply other threads:[~2005-11-05 15:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-05 10:56 [PATCH] [DRIVER MODEL] Improved dynamically allocated platform_device interface Russell King
2005-11-05 10:57 ` [PATCH] [DRIVER MODEL] Fix depca Russell King
2005-11-05 10:58 ` [PATCH] [DRIVER MODEL] Fix jazzsonic Russell King
2005-11-05 10:58 ` [PATCH] [DRIVER MODEL] Fix macsonic Russell King
2005-11-05 10:59 ` [PATCH] [DRIVER MODEL] Fix arcfb Russell King
2005-11-05 10:59 ` [PATCH] [DRIVER MODEL] Fix gbefb Russell King
2005-11-05 11:00 ` [PATCH] [DRIVER MODEL] Fix sgivwfb Russell King
2005-11-05 11:02 ` [RFC] [DRIVER MODEL] Make other buggy drivers warn Russell King
2005-11-05 15:42 ` Greg KH [this message]
2005-11-05 17:19 ` [PATCH] [DRIVER MODEL] Improved dynamically allocated platform_device interface Russell King
2005-11-05 19:40 ` Greg KH
2005-11-05 17:23 ` Russell King
2005-11-05 21:38 ` Russell King
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=20051105154210.GA20598@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/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.