Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91676
b: refs/heads/master
c: cb3576f
h: refs/heads/master
v: v3
  • Loading branch information
Gary Hade authored and Greg Kroah-Hartman committed Apr 21, 2008
1 parent 4c3e6ac commit 7c71c5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 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: 21c6847406784fde73ad5ea47c2c3434714d58d1
refs/heads/master: cb3576fa34e36907e292f408cb6c258f4fd112ad
8 changes: 4 additions & 4 deletions trunk/arch/x86/pci/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ adjust_transparent_bridge_resources(struct pci_bus *bus)

static void
get_current_resources(struct acpi_device *device, int busnum,
struct pci_bus *bus)
int domain, struct pci_bus *bus)
{
struct pci_root_info info;
size_t size;
Expand All @@ -168,10 +168,10 @@ get_current_resources(struct acpi_device *device, int busnum,
if (!info.res)
goto res_alloc_fail;

info.name = kmalloc(12, GFP_KERNEL);
info.name = kmalloc(16, GFP_KERNEL);
if (!info.name)
goto name_alloc_fail;
sprintf(info.name, "PCI Bus #%02x", busnum);
sprintf(info.name, "PCI Bus %04x:%02x", domain, busnum);

info.res_num = 0;
acpi_walk_resources(device->handle, METHOD_NAME__CRS, setup_resource,
Expand Down Expand Up @@ -247,7 +247,7 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
#endif

if (bus && (pci_probe & PCI_USE__CRS))
get_current_resources(device, busnum, bus);
get_current_resources(device, busnum, domain, bus);

return bus;
}
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/pci/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max,
pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max);
}

sprintf(child->name, (is_cardbus ? "PCI CardBus #%02x" : "PCI Bus #%02x"), child->number);
sprintf(child->name,
(is_cardbus ? "PCI CardBus %04x:%02x" : "PCI Bus %04x:%02x"),
pci_domain_nr(bus), child->number);

/* Has only triggered on CardBus, fixup is in yenta_socket */
while (bus->parent) {
Expand Down

0 comments on commit 7c71c5d

Please sign in to comment.