8d29af8945
as the unit argument instead of 0. disable_slot() calls devclass_get_device() correctly, however because alloc_driver() does it wrong, disable_slot() is unable to locate the child devices attached to the pccard bus and thus fails to call device_delete_child() on them. The end result is that when a card is removed, its detach routine is never called, and re-insertion always fails. With this fix (and the previous one to if_wi.c), I can now insert, remove and re-insert my WaveLAN/IEEE card and things behave correctly. kldunloading the if_wi.ko module also seems to work properly now. Ok'ed by: imp |
||
---|---|---|
.. | ||
cardinfo.h | ||
cis.h | ||
driver.h | ||
i82365.h | ||
pccard_beep.c | ||
pccard_nbk.c | ||
pccard_nbk.h | ||
pccard.c | ||
pcic98reg.h | ||
pcic_pci.c | ||
pcic_pci.h | ||
pcic.c | ||
pcic.h | ||
slot.h |