Alex Chiang cef354db0d PCI: connect struct pci_dev to struct pci_slot
The introduction of struct pci_slot (f46753c5e354b857b20ab8e0fe7b25)
added a struct pci_slot pointer to struct pci_dev, but we forgot to
associate the two.

Connect the two structs together; the interesting portions of the object
lifetimes are:

	- when a new pci_slot is created, connect it to the appropriate
	  pci_dev's. A single pci_slot may be associated with multiple
	  pci_dev's, e.g. any multi-function PCI device.

	- when a pci_slot is released, look for all the pci_dev's it was
	  associated with, and set their pci_slot pointers to NULL

	- when a pci_dev is created, look for slots to associate with.

Note -- when a pci_dev is released, we don't need to do any bookkeeping,
since pci_slot's do not have pointers to pci_dev's.

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2008-10-20 10:53:52 -07:00
..
2005-10-18 08:26:15 -07:00
2008-10-20 10:53:51 -07:00
2008-10-15 14:24:08 +02:00
2008-10-15 14:24:08 +02:00
2008-10-15 14:24:08 +02:00
2008-10-15 14:24:08 +02:00
2008-07-18 22:50:34 +02:00
2006-12-01 14:36:56 -08:00
2008-10-20 10:53:46 -07:00
2008-10-20 10:53:51 -07:00
2008-10-20 10:53:40 -07:00
2008-10-20 10:53:51 -07:00
2008-09-26 18:59:05 -06:00
2008-06-25 16:05:13 -07:00