diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-09-04 11:08:42 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-09-04 11:08:42 -0400 |
commit | 7203781c98ad9147564d327de6f6513ad8fc0f4e (patch) | |
tree | 5c29a2a04a626bf08a0d56fd8a0068b3c92ad284 /arch/ia64/pci/pci.c | |
parent | 671eef85a3e885dff4ce210d8774ad50a91d5967 (diff) | |
parent | af2e1f276ff08f17192411ea3b71c13a758dfe12 (diff) |
Merge branch 'x86/cpu' into x86/core
Conflicts:
arch/x86/kernel/cpu/feature_names.c
include/asm-x86/cpufeature.h
Diffstat (limited to 'arch/ia64/pci/pci.c')
-rw-r--r-- | arch/ia64/pci/pci.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 77b15f80f101..7545037a8625 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
@@ -324,7 +324,6 @@ pcibios_setup_root_windows(struct pci_bus *bus, struct pci_controller *ctrl) | |||
324 | struct pci_bus * __devinit | 324 | struct pci_bus * __devinit |
325 | pci_acpi_scan_root(struct acpi_device *device, int domain, int bus) | 325 | pci_acpi_scan_root(struct acpi_device *device, int domain, int bus) |
326 | { | 326 | { |
327 | struct pci_root_info info; | ||
328 | struct pci_controller *controller; | 327 | struct pci_controller *controller; |
329 | unsigned int windows = 0; | 328 | unsigned int windows = 0; |
330 | struct pci_bus *pbus; | 329 | struct pci_bus *pbus; |
@@ -346,22 +345,24 @@ pci_acpi_scan_root(struct acpi_device *device, int domain, int bus) | |||
346 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, count_window, | 345 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, count_window, |
347 | &windows); | 346 | &windows); |
348 | if (windows) { | 347 | if (windows) { |
348 | struct pci_root_info info; | ||
349 | |||
349 | controller->window = | 350 | controller->window = |
350 | kmalloc_node(sizeof(*controller->window) * windows, | 351 | kmalloc_node(sizeof(*controller->window) * windows, |
351 | GFP_KERNEL, controller->node); | 352 | GFP_KERNEL, controller->node); |
352 | if (!controller->window) | 353 | if (!controller->window) |
353 | goto out2; | 354 | goto out2; |
354 | } | ||
355 | 355 | ||
356 | name = kmalloc(16, GFP_KERNEL); | 356 | name = kmalloc(16, GFP_KERNEL); |
357 | if (!name) | 357 | if (!name) |
358 | goto out3; | 358 | goto out3; |
359 | 359 | ||
360 | sprintf(name, "PCI Bus %04x:%02x", domain, bus); | 360 | sprintf(name, "PCI Bus %04x:%02x", domain, bus); |
361 | info.controller = controller; | 361 | info.controller = controller; |
362 | info.name = name; | 362 | info.name = name; |
363 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, add_window, | 363 | acpi_walk_resources(device->handle, METHOD_NAME__CRS, |
364 | &info); | 364 | add_window, &info); |
365 | } | ||
365 | /* | 366 | /* |
366 | * See arch/x86/pci/acpi.c. | 367 | * See arch/x86/pci/acpi.c. |
367 | * The desired pci bus might already be scanned in a quirk. We | 368 | * The desired pci bus might already be scanned in a quirk. We |