aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/acpiphp_core.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-13 17:27:25 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-22 22:00:24 -0400
commitbda46dbb6626c923a800b4033c86fefa613cd64c (patch)
tree1c035530c7ce97096b91558c6ce5fd4043cea159 /drivers/pci/hotplug/acpiphp_core.c
parent89373a55d294b53e85792dbc636015b83d492f67 (diff)
ACPI / hotplug / PCI: Store parent in functions and bus in slots
To avoid chasing more pointers than necessary in some situations, move the bridge pointer from struct acpiphp_slot to struct acpiphp_func (and call it 'parent') and add a bus pointer to struct acpiphp_slot. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_core.c')
-rw-r--r--drivers/pci/hotplug/acpiphp_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/acpiphp_core.c b/drivers/pci/hotplug/acpiphp_core.c
index 1798740f7e18..8f20e6021611 100644
--- a/drivers/pci/hotplug/acpiphp_core.c
+++ b/drivers/pci/hotplug/acpiphp_core.c
@@ -321,10 +321,8 @@ int acpiphp_register_hotplug_slot(struct acpiphp_slot *acpiphp_slot,
321 slot->sun = sun; 321 slot->sun = sun;
322 snprintf(name, SLOT_NAME_SIZE, "%u", sun); 322 snprintf(name, SLOT_NAME_SIZE, "%u", sun);
323 323
324 retval = pci_hp_register(slot->hotplug_slot, 324 retval = pci_hp_register(slot->hotplug_slot, acpiphp_slot->bus,
325 acpiphp_slot->bridge->pci_bus, 325 acpiphp_slot->device, name);
326 acpiphp_slot->device,
327 name);
328 if (retval == -EBUSY) 326 if (retval == -EBUSY)
329 goto error_hpslot; 327 goto error_hpslot;
330 if (retval) { 328 if (retval) {