Re: [PATCH 2.5.61] pcmcia: add device_class pcmcia_socket, update devices & drivers

Russell King (rmk@arm.linux.org.uk)
Sat, 15 Feb 2003 13:12:13 +0000


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 (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- 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/