Skip to content

Commit 6dd10c4

Browse files
jwrdegoederafaeljw
authored andcommitted
ACPI: hotplug: PCI: Use the new acpi_evaluate_reg() helper
Use the new acpi_evaluate_reg() helper in the acpiphp_glue.c code. Acked-by: Bjorn Helgaas <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 132565d commit 6dd10c4

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

drivers/pci/hotplug/acpiphp_glue.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -385,19 +385,12 @@ static unsigned char acpiphp_max_busnr(struct pci_bus *bus)
385385
static void acpiphp_set_acpi_region(struct acpiphp_slot *slot)
386386
{
387387
struct acpiphp_func *func;
388-
union acpi_object params[2];
389-
struct acpi_object_list arg_list;
390388

391389
list_for_each_entry(func, &slot->funcs, sibling) {
392-
arg_list.count = 2;
393-
arg_list.pointer = params;
394-
params[0].type = ACPI_TYPE_INTEGER;
395-
params[0].integer.value = ACPI_ADR_SPACE_PCI_CONFIG;
396-
params[1].type = ACPI_TYPE_INTEGER;
397-
params[1].integer.value = 1;
398390
/* _REG is optional, we don't care about if there is failure */
399-
acpi_evaluate_object(func_to_handle(func), "_REG", &arg_list,
400-
NULL);
391+
acpi_evaluate_reg(func_to_handle(func),
392+
ACPI_ADR_SPACE_PCI_CONFIG,
393+
ACPI_REG_CONNECT);
401394
}
402395
}
403396

0 commit comments

Comments
 (0)