Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283373
b: refs/heads/master
c: c4e0657
h: refs/heads/master
i:
  283371: 9762f46
v: v3
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Jan 6, 2012
1 parent 2409e0b commit c8c3e17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 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: 9a4580011da2a2a1a5a152e13dce2a32997d3ee9
refs/heads/master: c4e06576282c5f91549b344fd0f516c421332b68
22 changes: 12 additions & 10 deletions trunk/drivers/parisc/dino.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,22 +1007,24 @@ static int __init dino_probe(struct parisc_device *dev)
** It's not used to avoid chicken/egg problems
** with configuration accessor functions.
*/
dino_dev->hba.hba_bus = bus = pci_scan_bus_parented(&dev->dev,
dino_dev->hba.hba_bus = bus = pci_create_bus(&dev->dev,
dino_current_bus, &dino_cfg_ops, NULL);

if(bus) {
/* This code *depends* on scanning being single threaded
* if it isn't, this global bus number count will fail
*/
dino_current_bus = bus->subordinate + 1;
pci_bus_assign_resources(bus);
pci_bus_add_devices(bus);
} else {
if (!bus) {
printk(KERN_ERR "ERROR: failed to scan PCI bus on %s (duplicate bus number %d?)\n",
dev_name(&dev->dev), dino_current_bus);
/* increment the bus number in case of duplicates */
dino_current_bus++;
return 0;
}

bus->subordinate = pci_scan_child_bus(bus);

/* This code *depends* on scanning being single threaded
* if it isn't, this global bus number count will fail
*/
dino_current_bus = bus->subordinate + 1;
pci_bus_assign_resources(bus);
pci_bus_add_devices(bus);
return 0;
}

Expand Down

0 comments on commit c8c3e17

Please sign in to comment.