Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185115
b: refs/heads/master
c: c85e4aa
h: refs/heads/master
i:
  185113: a7c7e0a
  185111: 765d57b
v: v3
  • Loading branch information
H. Peter Anvin committed Feb 11, 2010
1 parent 1abcf50 commit 91e67a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 84abd88a70090cf00f9e45c3a81680874f17626e
refs/heads/master: c85e4aae699360e8db4ebfe710e917ac9b6fc77e
14 changes: 7 additions & 7 deletions trunk/drivers/pci/hotplug/ibmphp_res.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void update_resources (struct bus_node *bus_cur, int type, int rangeno);
static int once_over (void);
static int remove_ranges (struct bus_node *, struct bus_node *);
static int update_bridge_ranges (struct bus_node **);
static int add_range (int type, struct range_node *, struct bus_node *);
static int add_bus_range (int type, struct range_node *, struct bus_node *);
static void fix_resources (struct bus_node *);
static struct bus_node *find_bus_wprev (u8, struct bus_node **, u8);

Expand Down Expand Up @@ -133,7 +133,7 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node
newrange->rangeno = 1;
else {
/* need to insert our range */
add_range (flag, newrange, newbus);
add_bus_range (flag, newrange, newbus);
debug ("%d resource Primary Bus inserted on bus %x [%x - %x]\n", flag, newbus->busno, newrange->start, newrange->end);
}

Expand Down Expand Up @@ -384,7 +384,7 @@ int __init ibmphp_rsrc_init (void)
* Input: type of the resource, range to add, current bus
* Output: 0 or -1, bus and range ptrs
********************************************************************************/
static int add_range (int type, struct range_node *range, struct bus_node *bus_cur)
static int add_bus_range (int type, struct range_node *range, struct bus_node *bus_cur)
{
struct range_node *range_cur = NULL;
struct range_node *range_prev;
Expand Down Expand Up @@ -455,7 +455,7 @@ static int add_range (int type, struct range_node *range, struct bus_node *bus_c

/*******************************************************************************
* This routine goes through the list of resources of type 'type' and updates
* the range numbers that they correspond to. It was called from add_range fnc
* the range numbers that they correspond to. It was called from add_bus_range fnc
*
* Input: bus, type of the resource, the rangeno starting from which to update
******************************************************************************/
Expand Down Expand Up @@ -1999,7 +1999,7 @@ static int __init update_bridge_ranges (struct bus_node **bus)

if (bus_sec->noIORanges > 0) {
if (!range_exists_already (range, bus_sec, IO)) {
add_range (IO, range, bus_sec);
add_bus_range (IO, range, bus_sec);
++bus_sec->noIORanges;
} else {
kfree (range);
Expand Down Expand Up @@ -2048,7 +2048,7 @@ static int __init update_bridge_ranges (struct bus_node **bus)

if (bus_sec->noMemRanges > 0) {
if (!range_exists_already (range, bus_sec, MEM)) {
add_range (MEM, range, bus_sec);
add_bus_range (MEM, range, bus_sec);
++bus_sec->noMemRanges;
} else {
kfree (range);
Expand Down Expand Up @@ -2102,7 +2102,7 @@ static int __init update_bridge_ranges (struct bus_node **bus)

if (bus_sec->noPFMemRanges > 0) {
if (!range_exists_already (range, bus_sec, PFMEM)) {
add_range (PFMEM, range, bus_sec);
add_bus_range (PFMEM, range, bus_sec);
++bus_sec->noPFMemRanges;
} else {
kfree (range);
Expand Down

0 comments on commit 91e67a7

Please sign in to comment.