Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294751
b: refs/heads/master
c: a5390aa
h: refs/heads/master
i:
  294749: fbb0592
  294747: 9d53814
  294743: c09fad4
  294735: d8de5ce
  294719: 9a29af6
v: v3
  • Loading branch information
Bjorn Helgaas committed Feb 24, 2012
1 parent 7225ce8 commit de1a3da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 844393f4c5e309dd262b27796471c47e348b57a8
refs/heads/master: a5390aa6dc3646b08bed421944cef0daf78ab994
8 changes: 4 additions & 4 deletions trunk/drivers/pci/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1569,10 +1569,6 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus,
goto err_out;
}

down_write(&pci_bus_sem);
list_add_tail(&b->node, &pci_root_buses);
up_write(&pci_bus_sem);

dev->parent = parent;
dev->release = pci_release_bus_bridge_dev;
dev_set_name(dev, "pci%04x:%02x", pci_domain_nr(b), bus);
Expand Down Expand Up @@ -1612,6 +1608,10 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus,
dev_info(&b->dev, "root bus resource %pR\n", res);
}

down_write(&pci_bus_sem);
list_add_tail(&b->node, &pci_root_buses);
up_write(&pci_bus_sem);

return b;

class_dev_reg_err:
Expand Down

0 comments on commit de1a3da

Please sign in to comment.