Re: [PATCH 2.5.61] pcmcia: add device_class pcmcia_socket, update devices & drivers
Russell King <[email protected]> Sat, 15 Feb 2003 13:12:13 +0000
| Newsgroups | gmane.linux.pcmcia.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Feb 15, 2003 at 01:33:09PM +0100, Dominik Brodowski wrote:
> A new device_class "pcmcia_socket_class" is introduced for PCMCIA and
> CardBus sockets. All socket drivers I could find are updated so that they
> register a driver, and -if necessary- the "platform"/legacy device. This
> will allow for a cleanup of pcmcia_{un}register_socket() /
> {un}register_ss_entry() as well as reflect the parent for pcmcia_bus
> devices.
> +
> +static struct platform_device sa1100_pcmcia_device = {
> + .name = "sa1100_pcmcia",
> + .id = 0,
> + .dev = {
> + .name = "sa1100_pcmcia",
> + },
> +};
> +
This probably isn't the best way to handle this - the sa1100 device driver
is actually a generic driver to couple to GPIO-based PCMCIA implementations,
which includes the sa1111 stuff. The sa1111 stuff itself registers with
sysfs.
--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf