summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/rpaphp.h
diff options
context:
space:
mode:
authorJohn Rose <johnrose@austin.ibm.com>2005-07-25 11:13:38 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 14:57:22 -0700
commit9c209c919df95f83aa042b3352c43841ad15a02b (patch)
tree9be41a91d2da30893cc4e5b88fa02ea36f756598 /drivers/pci/hotplug/rpaphp.h
parent5eeb8c63a38ff20285f3bbe7bcfe5e7c33c8ba14 (diff)
[PATCH] PCI Hotplug: rpaphp: Change slot pci reference
The slot structure in the rpaphp module currently references the PCI contents of the slot using the PCI device of the parent bridge. This is unnecessary, since the module is actually interested in the subordinate bus of the bridge. The dependency on a PCI bridge device also prohibits the module from registering hotplug slots that have a root bridge as a parent, since root bridges on PPC64 don't have PCI devices. This patch changes struct slot to reference the PCI subsystem using a pci_bus rather than a pci_dev. Signed-off-by: John Rose <johnrose@austin.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/rpaphp.h')
-rw-r--r--drivers/pci/hotplug/rpaphp.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/rpaphp.h b/drivers/pci/hotplug/rpaphp.h
index 2d9f420dfa4f..9f050fde80c2 100644
--- a/drivers/pci/hotplug/rpaphp.h
+++ b/drivers/pci/hotplug/rpaphp.h
@@ -80,10 +80,9 @@ struct slot {
char *name;
char *location;
u8 removable;
- struct device_node *dn; /* slot's device_node in OFDT */
- /* dn has phb info */
- struct pci_dev *bridge; /* slot's pci_dev in pci_devices */
- struct list_head *pci_devs; /* pci_devs in PCI slot */
+ struct device_node *dn;
+ struct pci_bus *bus;
+ struct list_head *pci_devs;
struct hotplug_slot *hotplug_slot;
};