Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294709
b: refs/heads/master
c: 67cc7e2
h: refs/heads/master
i:
  294707: f1b4b80
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Feb 14, 2012
1 parent 63d4538 commit 72a29e9
Show file tree
Hide file tree
Showing 2 changed files with 5 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: b592443d9045f0880eb4d8cc9125075744db4b9e
refs/heads/master: 67cc7e26a5c46508ee00b9fe169aad833b798025
14 changes: 4 additions & 10 deletions trunk/drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ static int add_to_list(struct list_head *head,
return 0;
}

static void add_to_failed_list(struct list_head *head,
struct pci_dev *dev, struct resource *res)
{
add_to_list(head, dev, res,
0 /* dont care */,
0 /* dont care */);
}

static void remove_from_list(struct list_head *head,
struct resource *res)
{
Expand Down Expand Up @@ -302,8 +294,10 @@ static void assign_requested_resources_sorted(struct list_head *head,
*/
if (!((idx == PCI_ROM_RESOURCE) &&
(!(res->flags & IORESOURCE_ROM_ENABLE))))
add_to_failed_list(fail_head,
dev_res->dev, res);
add_to_list(fail_head,
dev_res->dev, res,
0 /* dont care */,
0 /* dont care */);
}
reset_resource(res);
}
Expand Down

0 comments on commit 72a29e9

Please sign in to comment.