Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316450
b: refs/heads/master
c: 04de975
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Bjorn Helgaas committed Jun 13, 2012
1 parent 99c35fd commit 1c027cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 7d01f70ac6f48733d595f1a54aa7c4d2ae3fef0d
refs/heads/master: 04de975e7840e6d9da3ef44ab414f3ee1b98d611
10 changes: 4 additions & 6 deletions trunk/drivers/pci/hotplug/cpqphp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ static void __iomem *detect_HRT_floating_pointer(void __iomem *begin, void __iom

int cpqhp_configure_device (struct controller* ctrl, struct pci_func* func)
{
unsigned char bus;
struct pci_bus *child;
int num;

Expand All @@ -106,11 +105,10 @@ int cpqhp_configure_device (struct controller* ctrl, struct pci_func* func)
}

if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) {
int max;
pci_read_config_byte(func->pci_dev, PCI_SECONDARY_BUS, &bus);
child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus);
max = pci_do_scan_bus(child);
pci_bus_update_busn_res_end(child, max);
pci_hp_add_bridge(func->pci_dev);
child = func->pci_dev->subordinate;
if (child)
pci_bus_add_devices(child);
}

pci_dev_put(func->pci_dev);
Expand Down

0 comments on commit 1c027cf

Please sign in to comment.