ACPI: Convert ACPI PCI .bind/.unbind to use PCI bridge driver
acpi_device had a .bind/.unbind methods, but Linux driver model does not. Cut ACPI PCI code over to use the Linux driver model methods. Convert bind/unbind to use a new pci bridge driver. The driver will add/remove _PRT, so we can eventually remove .bind/.unbind methods. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@@ -866,11 +866,6 @@ static int acpi_bus_remove(struct acpi_device *dev, int rmdevice)
|
||||
if (!rmdevice)
|
||||
return 0;
|
||||
|
||||
if (dev->flags.bus_address) {
|
||||
if ((dev->parent) && (dev->parent->ops.unbind))
|
||||
dev->parent->ops.unbind(dev);
|
||||
}
|
||||
|
||||
acpi_device_unregister(dev, ACPI_BUS_REMOVAL_EJECT);
|
||||
|
||||
return 0;
|
||||
@@ -987,18 +982,6 @@ acpi_add_single_object(struct acpi_device **child,
|
||||
|
||||
acpi_device_register(device, parent);
|
||||
|
||||
/*
|
||||
* Bind _ADR-Based Devices
|
||||
* -----------------------
|
||||
* If there's a a bus address (_ADR) then we utilize the parent's
|
||||
* 'bind' function (if exists) to bind the ACPI- and natively-
|
||||
* enumerated device representations.
|
||||
*/
|
||||
if (device->flags.bus_address) {
|
||||
if (device->parent && device->parent->ops.bind)
|
||||
device->parent->ops.bind(device);
|
||||
}
|
||||
|
||||
end:
|
||||
if (!result)
|
||||
*child = device;
|
||||
|
Reference in New Issue
Block a user