提交 c85e4aae 编写于 作者: H H. Peter Anvin

ibmphp: Rename add_range() to add_bus_range() to avoid conflict

Rename add_range() to add_bus_range() to avoid conflict with the
naming of the generic range manipulation functions.

LKML-Reference: <1265793639-15071-4-git-send-email-yinghai@kernel.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
上级 84abd88a
...@@ -40,7 +40,7 @@ static void update_resources (struct bus_node *bus_cur, int type, int rangeno); ...@@ -40,7 +40,7 @@ static void update_resources (struct bus_node *bus_cur, int type, int rangeno);
static int once_over (void); static int once_over (void);
static int remove_ranges (struct bus_node *, struct bus_node *); static int remove_ranges (struct bus_node *, struct bus_node *);
static int update_bridge_ranges (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 void fix_resources (struct bus_node *);
static struct bus_node *find_bus_wprev (u8, struct bus_node **, u8); static struct bus_node *find_bus_wprev (u8, struct bus_node **, u8);
...@@ -133,7 +133,7 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node ...@@ -133,7 +133,7 @@ static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node
newrange->rangeno = 1; newrange->rangeno = 1;
else { else {
/* need to insert our range */ /* 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); debug ("%d resource Primary Bus inserted on bus %x [%x - %x]\n", flag, newbus->busno, newrange->start, newrange->end);
} }
...@@ -384,7 +384,7 @@ int __init ibmphp_rsrc_init (void) ...@@ -384,7 +384,7 @@ int __init ibmphp_rsrc_init (void)
* Input: type of the resource, range to add, current bus * Input: type of the resource, range to add, current bus
* Output: 0 or -1, bus and range ptrs * 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_cur = NULL;
struct range_node *range_prev; struct range_node *range_prev;
...@@ -455,7 +455,7 @@ static int add_range (int type, struct range_node *range, struct bus_node *bus_c ...@@ -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 * 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 * Input: bus, type of the resource, the rangeno starting from which to update
******************************************************************************/ ******************************************************************************/
...@@ -1999,7 +1999,7 @@ static int __init update_bridge_ranges (struct bus_node **bus) ...@@ -1999,7 +1999,7 @@ static int __init update_bridge_ranges (struct bus_node **bus)
if (bus_sec->noIORanges > 0) { if (bus_sec->noIORanges > 0) {
if (!range_exists_already (range, bus_sec, IO)) { if (!range_exists_already (range, bus_sec, IO)) {
add_range (IO, range, bus_sec); add_bus_range (IO, range, bus_sec);
++bus_sec->noIORanges; ++bus_sec->noIORanges;
} else { } else {
kfree (range); kfree (range);
...@@ -2048,7 +2048,7 @@ static int __init update_bridge_ranges (struct bus_node **bus) ...@@ -2048,7 +2048,7 @@ static int __init update_bridge_ranges (struct bus_node **bus)
if (bus_sec->noMemRanges > 0) { if (bus_sec->noMemRanges > 0) {
if (!range_exists_already (range, bus_sec, MEM)) { if (!range_exists_already (range, bus_sec, MEM)) {
add_range (MEM, range, bus_sec); add_bus_range (MEM, range, bus_sec);
++bus_sec->noMemRanges; ++bus_sec->noMemRanges;
} else { } else {
kfree (range); kfree (range);
...@@ -2102,7 +2102,7 @@ static int __init update_bridge_ranges (struct bus_node **bus) ...@@ -2102,7 +2102,7 @@ static int __init update_bridge_ranges (struct bus_node **bus)
if (bus_sec->noPFMemRanges > 0) { if (bus_sec->noPFMemRanges > 0) {
if (!range_exists_already (range, bus_sec, PFMEM)) { if (!range_exists_already (range, bus_sec, PFMEM)) {
add_range (PFMEM, range, bus_sec); add_bus_range (PFMEM, range, bus_sec);
++bus_sec->noPFMemRanges; ++bus_sec->noPFMemRanges;
} else { } else {
kfree (range); kfree (range);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册