Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294696
b: refs/heads/master
c: 1c37235
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Feb 14, 2012
1 parent 3c8793c commit 80b3369
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 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: ef62dfefa93bc90f1cb0f4a55c2d86b3269b3f92
refs/heads/master: 1c372353e9c681b127f21030f8a0f0c2afd82429
29 changes: 15 additions & 14 deletions trunk/drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@ static void add_to_failed_list(struct resource_list_x *head,
0 /* dont care */);
}

static resource_size_t get_res_add_size(struct resource_list_x *realloc_head,
struct resource *res)
{
struct resource_list_x *list;

/* check if it is in realloc_head list */
for (list = realloc_head->next; list && list->res != res;
list = list->next)
;
if (list)
return list->add_size;

return 0;
}

static void __dev_sort_resources(struct pci_dev *dev,
struct resource_list *head)
{
Expand Down Expand Up @@ -550,20 +565,6 @@ static resource_size_t calculate_memsize(resource_size_t size,
return size;
}

static resource_size_t get_res_add_size(struct resource_list_x *realloc_head,
struct resource *res)
{
struct resource_list_x *list;

/* check if it is in realloc_head list */
for (list = realloc_head->next; list && list->res != res;
list = list->next);
if (list)
return list->add_size;

return 0;
}

/**
* pbus_size_io() - size the io window of a given bus
*
Expand Down

0 comments on commit 80b3369

Please sign in to comment.