diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-13 17:27:24 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-07-22 22:00:21 -0400 |
commit | f28181109e85b49b5b4b1c381d889b4ea7315988 (patch) | |
tree | 4f6b7f75723ec666ebc97ad352486f60011aea59 /drivers/pci/hotplug/acpiphp_glue.c | |
parent | 43e5c091c797616170b11f4a1b32ea8c81ad0100 (diff) |
ACPI / hotplug / PCI: Drop func field from struct acpiphp_bridge
Since the func pointer in struct acpiphp_context can always be used
instead of the func pointer in struct acpiphp_bridge, drop the
latter.
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_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index e2f9ea03aece..a83ce9db16bb 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -181,7 +181,7 @@ static void free_bridge(struct kref *kref) | |||
181 | context = bridge->context; | 181 | context = bridge->context; |
182 | /* Release the reference acquired by acpiphp_enumerate_slots(). */ | 182 | /* Release the reference acquired by acpiphp_enumerate_slots(). */ |
183 | if (context->handler_for_func) | 183 | if (context->handler_for_func) |
184 | put_bridge(bridge->func->slot->bridge); | 184 | put_bridge(context->func->slot->bridge); |
185 | 185 | ||
186 | put_device(&bridge->pci_bus->dev); | 186 | put_device(&bridge->pci_bus->dev); |
187 | pci_dev_put(bridge->pci_dev); | 187 | pci_dev_put(bridge->pci_dev); |
@@ -1212,7 +1212,6 @@ void acpiphp_enumerate_slots(struct pci_bus *bus) | |||
1212 | } | 1212 | } |
1213 | if (context->handler_for_func) { | 1213 | if (context->handler_for_func) { |
1214 | /* Notify handler already installed. */ | 1214 | /* Notify handler already installed. */ |
1215 | bridge->func = context->func; | ||
1216 | get_bridge(context->func->slot->bridge); | 1215 | get_bridge(context->func->slot->bridge); |
1217 | return; | 1216 | return; |
1218 | } | 1217 | } |