Oops, looks like Russell and I didn't test on a cardbus machine :)
I've made the following change to the repository, so you can just pull
it if you want to (from bk://kernel.bkbits.net/gregkh/linux/pci-2.5 ) or
you can just apply this patch.
It looks right to me, but I don't have a working cardbus machine at the
moment, so I can't test it, sorry.
Again, sorry about this.
greg k-h
# Cardbus: change cb_free to use pci_remove_device_safe()
diff -Nru a/drivers/pcmcia/cardbus.c b/drivers/pcmcia/cardbus.c
--- a/drivers/pcmcia/cardbus.c Sat Mar 1 13:49:27 2003
+++ b/drivers/pcmcia/cardbus.c Sat Mar 1 13:49:27 2003
@@ -313,7 +313,7 @@
s->cb_config = NULL;
for (i = 0 ; i < s->functions ; i++)
- pci_remove_device(&c[i].dev);
+ pci_remove_device_safe(&c[i].dev);
kfree(c);
printk(KERN_INFO "cs: cb_free(bus %d)\n", s->cap.cb_dev->subordinate->number);
-
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/