]> git.hungrycats.org Git - linux/commit
[PCMCIA] "driver services" socket add/remove abstraction
authorDominik Brodowski <linux@de.rmk.(none)>
Wed, 26 Mar 2003 23:52:51 +0000 (23:52 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Wed, 26 Mar 2003 23:52:51 +0000 (23:52 +0000)
commit1118d9219f5b6053053a625141b23840c1300569
treeff28712f78ac896c20f218b2a41dc1b5135ebe34
parent811bbb9696f92f6974efed39bbc63eb2a612b978
[PCMCIA] "driver services" socket add/remove abstraction

Previously, "Driver Services" could only be called when the socket
drivers were initialized earlier. This caused an awful lot of
problems, especially when modprobe tried to load ds.ko and a pcmcia
card driver at once.

As all socket devices are registered with the driver model core as
being of "class_type pcmcia_socket_class", we can take use of that and
register them with "Driver Services" upon detection or upon
module loading of ds.c.

Also, the "I-need-two-initcalls-in-a-module"-tweak can go away.

Unfortunately, this patch reportedly breaks some RedHat pcmcia init
scritps - they relied on the failed loading of ds.c to detect that no
socket driver was loaded previously. To properly detect this, you
should take a look at the /sys/class/pcmcia_socket/devices directory.
drivers/pcmcia/ds.c