Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324251
b: refs/heads/master
c: a9d18b3
h: refs/heads/master
i:
  324249: 9a3908e
  324247: 806e32f
v: v3
  • Loading branch information
Jiang Liu authored and Bjorn Helgaas committed Sep 12, 2012
1 parent d466d19 commit 6f63662
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f85567c89e2500d4ce4ca2702025a47fac684f21
refs/heads/master: a9d18b37e408b10854e15a918849194a4e089001
8 changes: 2 additions & 6 deletions trunk/drivers/pci/hotplug/cpcihp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,8 @@ static int __init cpcihp_generic_init(void)
if(!r)
return -EBUSY;

bus = pci_find_bus(0, bridge_busnr);
if (!bus) {
err("Invalid bus number %d", bridge_busnr);
return -EINVAL;
}
dev = pci_get_slot(bus, PCI_DEVFN(bridge_slot, 0));
dev = pci_get_domain_bus_and_slot(0, bridge_busnr,
PCI_DEVFN(bridge_slot, 0));
if(!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) {
err("Invalid bridge device %s", bridge);
pci_dev_put(dev);
Expand Down

0 comments on commit 6f63662

Please sign in to comment.