Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343250
b: refs/heads/master
c: d4761ba
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas committed Nov 5, 2012
1 parent 60025e8 commit 11873d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79c4412298771b8996302806abc8a11e760da9b3
refs/heads/master: d4761ba2d6adbe24c792ec6223a5884ae4e82430
30 changes: 16 additions & 14 deletions trunk/drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,20 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
strcpy(acpi_device_class(device), ACPI_PCI_ROOT_CLASS);
device->driver_data = root;

printk(KERN_INFO PREFIX "%s [%s] (domain %04x %pR)\n",
acpi_device_name(device), acpi_device_bid(device),
root->segment, &root->secondary);

/*
* PCI Routing Table
* -----------------
* Evaluate and parse _PRT, if exists.
*/
status = acpi_get_handle(device->handle, METHOD_NAME__PRT, &handle);
if (ACPI_SUCCESS(status))
result = acpi_pci_irq_add_prt(device->handle, root->segment,
root->secondary.start);

root->mcfg_addr = acpi_pci_root_get_mcfg_addr(device->handle);

/*
Expand All @@ -518,10 +532,6 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
list_add_tail(&root->node, &acpi_pci_roots);
mutex_unlock(&acpi_pci_root_lock);

printk(KERN_INFO PREFIX "%s [%s] (domain %04x %pR)\n",
acpi_device_name(device), acpi_device_bid(device),
root->segment, &root->secondary);

/*
* Scan the Root Bridge
* --------------------
Expand All @@ -547,16 +557,6 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
if (result)
goto out_del_root;

/*
* PCI Routing Table
* -----------------
* Evaluate and parse _PRT, if exists.
*/
status = acpi_get_handle(device->handle, METHOD_NAME__PRT, &handle);
if (ACPI_SUCCESS(status))
result = acpi_pci_irq_add_prt(device->handle, root->segment,
root->secondary.start);

/*
* Scan and bind all _ADR-Based Devices
*/
Expand Down Expand Up @@ -635,6 +635,8 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
mutex_lock(&acpi_pci_root_lock);
list_del(&root->node);
mutex_unlock(&acpi_pci_root_lock);

acpi_pci_irq_del_prt(root->segment, root->secondary.start);
end:
kfree(root);
return result;
Expand Down

0 comments on commit 11873d6

Please sign in to comment.