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>
acpi_handle handle;
struct acpiphp_context *context;
- /* Ejectable PCI-to-PCI bridge (PCI bridge and PCI function) */
- struct acpiphp_func *func;
int nr_slots;
context = bridge->context;
/* Release the reference acquired by acpiphp_enumerate_slots(). */
if (context->handler_for_func)
- put_bridge(bridge->func->slot->bridge);
+ put_bridge(context->func->slot->bridge);
put_device(&bridge->pci_bus->dev);
pci_dev_put(bridge->pci_dev);
}
if (context->handler_for_func) {
/* Notify handler already installed. */
- bridge->func = context->func;
get_bridge(context->func->slot->bridge);
return;
}