Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117205
b: refs/heads/master
c: c4ed02f
h: refs/heads/master
i:
  117203: daef066
v: v3
  • Loading branch information
Matthew Wilcox authored and Jesse Barnes committed Oct 22, 2008
1 parent b6a7235 commit 1f9e2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 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: d389fec6a2aec1ea7d47833f36a0413a619c8c12
refs/heads/master: c4ed02fae78bf6cea0b22edd34a67df972f29832
9 changes: 3 additions & 6 deletions trunk/drivers/pci/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ struct pci_dev *pci_find_device(unsigned int vendor, unsigned int device,
{
struct pci_dev *pdev;

pci_dev_get(from);
pdev = pci_get_subsys(vendor, device, PCI_ANY_ID, PCI_ANY_ID, from);
pci_dev_put(pdev);
return pdev;
Expand Down Expand Up @@ -270,12 +271,8 @@ static struct pci_dev *pci_get_dev_by_id(const struct pci_device_id *id,
struct pci_dev *pdev = NULL;

WARN_ON(in_interrupt());
if (from) {
/* FIXME
* take the cast off, when bus_find_device is made const.
*/
dev_start = (struct device *)&from->dev;
}
if (from)
dev_start = &from->dev;
dev = bus_find_device(&pci_bus_type, dev_start, (void *)id,
match_pci_dev_by_id);
if (dev)
Expand Down

0 comments on commit 1f9e2b4

Please sign in to comment.