aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-01-26 19:35:05 -0500
committerBjorn Helgaas <bhelgaas@google.com>2013-01-26 19:35:05 -0500
commitfb455792d91469fe556b68f1baa9ff5493432be8 (patch)
tree12abb06786d7e09a3d43fc3d852b9848f3805060 /drivers/pci/hotplug
parent14b5cb37cc6172a54ce920c61784f44422ae306d (diff)
parenta2766602ac6885f9514abd97821984cd152cdad3 (diff)
Merge branch 'pci/acpi-scan2' into next
* pci/acpi-scan2: ACPI / scan: Drop acpi_bus_add() and use acpi_bus_scan() instead ACPI: update ej_event interface to take acpi_device ACPI / scan: Add second pass to acpi_bus_trim() ACPI / scan: Change the implementation of acpi_bus_trim() ACPI / scan: Drop the second argument of acpi_bus_trim() ACPI / scan: Drop the second argument of acpi_device_unregister() ACPI: Remove the ops field from struct acpi_device ACPI: remove unused acpi_op_bind and acpi_op_unbind ACPI / scan: Fix check of device_attach() return value.
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c8
-rw-r--r--drivers/pci/hotplug/sgi_hotplug.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 91b5ad875c53..9e2b1f6dbe41 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -742,11 +742,11 @@ static int acpiphp_bus_add(struct acpiphp_func *func)
742 /* this shouldn't be in here, so remove 742 /* this shouldn't be in here, so remove
743 * the bus then re-add it... 743 * the bus then re-add it...
744 */ 744 */
745 ret_val = acpi_bus_trim(device, 1); 745 ret_val = acpi_bus_trim(device);
746 dbg("acpi_bus_trim return %x\n", ret_val); 746 dbg("acpi_bus_trim return %x\n", ret_val);
747 } 747 }
748 748
749 ret_val = acpi_bus_add(func->handle); 749 ret_val = acpi_bus_scan(func->handle);
750 if (!ret_val) 750 if (!ret_val)
751 ret_val = acpi_bus_get_device(func->handle, &device); 751 ret_val = acpi_bus_get_device(func->handle, &device);
752 752
@@ -772,7 +772,7 @@ static int acpiphp_bus_trim(acpi_handle handle)
772 return retval; 772 return retval;
773 } 773 }
774 774
775 retval = acpi_bus_trim(device, 1); 775 retval = acpi_bus_trim(device);
776 if (retval) 776 if (retval)
777 err("cannot remove from acpi list\n"); 777 err("cannot remove from acpi list\n");
778 778
@@ -1129,7 +1129,7 @@ static void handle_bridge_insertion(acpi_handle handle, u32 type)
1129 return; 1129 return;
1130 } 1130 }
1131 1131
1132 if (acpi_bus_add(handle)) { 1132 if (acpi_bus_scan(handle)) {
1133 err("cannot add bridge to acpi list\n"); 1133 err("cannot add bridge to acpi list\n");
1134 return; 1134 return;
1135 } 1135 }
diff --git a/drivers/pci/hotplug/sgi_hotplug.c b/drivers/pci/hotplug/sgi_hotplug.c
index 24dace645871..180e760c1653 100644
--- a/drivers/pci/hotplug/sgi_hotplug.c
+++ b/drivers/pci/hotplug/sgi_hotplug.c
@@ -444,9 +444,9 @@ static int enable_slot(struct hotplug_slot *bss_hotplug_slot)
444 if (ACPI_SUCCESS(ret) && 444 if (ACPI_SUCCESS(ret) &&
445 (adr>>16) == (slot->device_num + 1)) { 445 (adr>>16) == (slot->device_num + 1)) {
446 446
447 ret = acpi_bus_add(chandle); 447 ret = acpi_bus_scan(chandle);
448 if (ACPI_FAILURE(ret)) { 448 if (ACPI_FAILURE(ret)) {
449 printk(KERN_ERR "%s: acpi_bus_add " 449 printk(KERN_ERR "%s: acpi_bus_scan "
450 "failed (0x%x) for slot %d " 450 "failed (0x%x) for slot %d "
451 "func %d\n", __func__, 451 "func %d\n", __func__,
452 ret, (int)(adr>>16), 452 ret, (int)(adr>>16),
@@ -531,7 +531,7 @@ static int disable_slot(struct hotplug_slot *bss_hotplug_slot)
531 ret = acpi_bus_get_device(chandle, 531 ret = acpi_bus_get_device(chandle,
532 &device); 532 &device);
533 if (ACPI_SUCCESS(ret)) 533 if (ACPI_SUCCESS(ret))
534 acpi_bus_trim(device, 1); 534 acpi_bus_trim(device);
535 } 535 }
536 } 536 }
537 537