1. 27 Mar, 2003 35 commits
  2. 26 Mar, 2003 1 commit
  3. 27 Mar, 2003 2 commits
    • Dominik Brodowski's avatar
      [PCMCIA] remove unused include/pcmcia/driver_ops.h · 0f5c57f5
      Dominik Brodowski authored
      Except for dev_node_t, the contents of include/pcmcia/driver_ops.h
      aren't used anywhere within the kernel. It's a left-over file from the
      days when cardbus 32-bit cards weren't handled as pci devices, and
      their drivers as pci drivers. So, move the dev_node_t to
      include/pcmcia/ds.h, remove the lone in-kernel reference to
      driver_ops.h, and remove the contents of driver_ops.h.
      0f5c57f5
    • Dominik Brodowski's avatar
      [PATCH] convert ds.c's socekt_info_t to struct pcmcia_bus_socket · 6ff402b8
      Dominik Brodowski authored
      Rename socket_info_t (which is used many, many times differently
      within pcmcia) to "struct pcmcia_bus_socket".
      
      Also, a couple of functions in ds.c can be converted to use the "struct
      pcmcia_bus_socket" as argument instead of the socket number.
      6ff402b8
  4. 26 Mar, 2003 2 commits
    • Dominik Brodowski's avatar
      [PCMCIA] remove "init_status" from struct pcmcia_driver · 8e5c3584
      Dominik Brodowski authored
      As we don't have a late_initcall in ds.c any more, we can't easily
      distinguish between in-kernel drivers and those built as modules. This
      information was used by cardmgr to detect whether "rmmod" makes
      sense. As unloading of modules seems to be deprecated behaviour anyway
      in 2.5., and the current driver unloading process is IMO broken
      anyway, I don't shed any tears on this lost functionality.
      8e5c3584
    • Dominik Brodowski's avatar
      [PCMCIA] "driver services" socket add/remove abstraction · 1118d921
      Dominik Brodowski authored
      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.
      1118d921