aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/acpi_pcihp.c2
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c18
-rw-r--r--drivers/pci/hotplug/acpiphp_ibm.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/drivers/pci/hotplug/acpi_pcihp.c b/drivers/pci/hotplug/acpi_pcihp.c
index 6833d7bdbbf..3c76fc67cf0 100644
--- a/drivers/pci/hotplug/acpi_pcihp.c
+++ b/drivers/pci/hotplug/acpi_pcihp.c
@@ -472,7 +472,7 @@ int acpi_pci_detect_ejectable(acpi_handle handle)
472 return found; 472 return found;
473 473
474 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 1, 474 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 1,
475 check_hotplug, (void *)&found, NULL); 475 check_hotplug, NULL, (void *)&found, NULL);
476 return found; 476 return found;
477} 477}
478EXPORT_SYMBOL_GPL(acpi_pci_detect_ejectable); 478EXPORT_SYMBOL_GPL(acpi_pci_detect_ejectable);
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 8f4a2073d83..8e952fdab76 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -264,7 +264,7 @@ static int detect_ejectable_slots(acpi_handle handle)
264 int found = acpi_pci_detect_ejectable(handle); 264 int found = acpi_pci_detect_ejectable(handle);
265 if (!found) { 265 if (!found) {
266 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1, 266 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1,
267 is_pci_dock_device, (void *)&found, NULL); 267 is_pci_dock_device, NULL, (void *)&found, NULL);
268 } 268 }
269 return found; 269 return found;
270} 270}
@@ -279,7 +279,7 @@ static void init_bridge_misc(struct acpiphp_bridge *bridge)
279 279
280 /* register all slot objects under this bridge */ 280 /* register all slot objects under this bridge */
281 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, bridge->handle, (u32)1, 281 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, bridge->handle, (u32)1,
282 register_slot, bridge, NULL); 282 register_slot, NULL, bridge, NULL);
283 if (ACPI_FAILURE(status)) { 283 if (ACPI_FAILURE(status)) {
284 list_del(&bridge->list); 284 list_del(&bridge->list);
285 return; 285 return;
@@ -441,7 +441,7 @@ find_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv)
441 441
442 /* search P2P bridges under this p2p bridge */ 442 /* search P2P bridges under this p2p bridge */
443 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1, 443 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1,
444 find_p2p_bridge, NULL, NULL); 444 find_p2p_bridge, NULL, NULL, NULL);
445 if (ACPI_FAILURE(status)) 445 if (ACPI_FAILURE(status))
446 warn("find_p2p_bridge failed (error code = 0x%x)\n", status); 446 warn("find_p2p_bridge failed (error code = 0x%x)\n", status);
447 447
@@ -479,7 +479,7 @@ static int add_bridge(acpi_handle handle)
479 479
480 /* search P2P bridges under this host bridge */ 480 /* search P2P bridges under this host bridge */
481 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1, 481 status = acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1,
482 find_p2p_bridge, NULL, NULL); 482 find_p2p_bridge, NULL, NULL, NULL);
483 483
484 if (ACPI_FAILURE(status)) 484 if (ACPI_FAILURE(status))
485 warn("find_p2p_bridge failed (error code = 0x%x)\n", status); 485 warn("find_p2p_bridge failed (error code = 0x%x)\n", status);
@@ -563,7 +563,7 @@ cleanup_p2p_bridge(acpi_handle handle, u32 lvl, void *context, void **rv)
563 /* cleanup p2p bridges under this P2P bridge 563 /* cleanup p2p bridges under this P2P bridge
564 in a depth-first manner */ 564 in a depth-first manner */
565 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1, 565 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, (u32)1,
566 cleanup_p2p_bridge, NULL, NULL); 566 cleanup_p2p_bridge, NULL, NULL, NULL);
567 567
568 bridge = acpiphp_handle_to_bridge(handle); 568 bridge = acpiphp_handle_to_bridge(handle);
569 if (bridge) 569 if (bridge)
@@ -579,7 +579,7 @@ static void remove_bridge(acpi_handle handle)
579 /* cleanup p2p bridges under this host bridge 579 /* cleanup p2p bridges under this host bridge
580 in a depth-first manner */ 580 in a depth-first manner */
581 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 581 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle,
582 (u32)1, cleanup_p2p_bridge, NULL, NULL); 582 (u32)1, cleanup_p2p_bridge, NULL, NULL, NULL);
583 583
584 /* 584 /*
585 * On root bridges with hotplug slots directly underneath (ie, 585 * On root bridges with hotplug slots directly underneath (ie,
@@ -1153,7 +1153,7 @@ static void handle_hotplug_event_bridge(acpi_handle handle, u32 type, void *cont
1153 bridge = acpiphp_handle_to_bridge(handle); 1153 bridge = acpiphp_handle_to_bridge(handle);
1154 if (type == ACPI_NOTIFY_BUS_CHECK) { 1154 if (type == ACPI_NOTIFY_BUS_CHECK) {
1155 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, ACPI_UINT32_MAX, 1155 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, ACPI_UINT32_MAX,
1156 count_sub_bridges, &num_sub_bridges, NULL); 1156 count_sub_bridges, NULL, &num_sub_bridges, NULL);
1157 } 1157 }
1158 1158
1159 if (!bridge && !num_sub_bridges) { 1159 if (!bridge && !num_sub_bridges) {
@@ -1174,7 +1174,7 @@ static void handle_hotplug_event_bridge(acpi_handle handle, u32 type, void *cont
1174 } 1174 }
1175 if (num_sub_bridges) 1175 if (num_sub_bridges)
1176 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 1176 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle,
1177 ACPI_UINT32_MAX, check_sub_bridges, NULL, NULL); 1177 ACPI_UINT32_MAX, check_sub_bridges, NULL, NULL, NULL);
1178 break; 1178 break;
1179 1179
1180 case ACPI_NOTIFY_DEVICE_CHECK: 1180 case ACPI_NOTIFY_DEVICE_CHECK:
@@ -1298,7 +1298,7 @@ int __init acpiphp_glue_init(void)
1298 int num = 0; 1298 int num = 0;
1299 1299
1300 acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, 1300 acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
1301 ACPI_UINT32_MAX, find_root_bridges, &num, NULL); 1301 ACPI_UINT32_MAX, find_root_bridges, NULL, &num, NULL);
1302 1302
1303 if (num <= 0) 1303 if (num <= 0)
1304 return -1; 1304 return -1;
diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c
index e7be66dbac2..aa5df485f8c 100644
--- a/drivers/pci/hotplug/acpiphp_ibm.c
+++ b/drivers/pci/hotplug/acpiphp_ibm.c
@@ -434,7 +434,7 @@ static int __init ibm_acpiphp_init(void)
434 dbg("%s\n", __func__); 434 dbg("%s\n", __func__);
435 435
436 if (acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, 436 if (acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
437 ACPI_UINT32_MAX, ibm_find_acpi_device, 437 ACPI_UINT32_MAX, ibm_find_acpi_device, NULL,
438 &ibm_acpi_handle, NULL) != FOUND_APCI) { 438 &ibm_acpi_handle, NULL) != FOUND_APCI) {
439 err("%s: acpi_walk_namespace failed\n", __func__); 439 err("%s: acpi_walk_namespace failed\n", __func__);
440 retval = -ENODEV; 440 retval = -ENODEV;