git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[pandora-kernel.git]
/
arch
/
sparc
/
prom
/
tree_64.c
diff --git
a/arch/sparc/prom/tree_64.c
b/arch/sparc/prom/tree_64.c
index
d936600
..
92204c3
100644
(file)
--- a/
arch/sparc/prom/tree_64.c
+++ b/
arch/sparc/prom/tree_64.c
@@
-43,10
+43,10
@@
inline phandle prom_getchild(phandle node)
{
phandle cnode;
{
phandle cnode;
- if (node == -1)
+ if (
(s32)
node == -1)
return 0;
cnode = __prom_getchild(node);
return 0;
cnode = __prom_getchild(node);
- if (cnode == -1)
+ if (
(s32)
cnode == -1)
return 0;
return cnode;
}
return 0;
return cnode;
}
@@
-56,10
+56,10
@@
inline phandle prom_getparent(phandle node)
{
phandle cnode;
{
phandle cnode;
- if (node == -1)
+ if (
(s32)
node == -1)
return 0;
cnode = prom_node_to_node("parent", node);
return 0;
cnode = prom_node_to_node("parent", node);
- if (cnode == -1)
+ if (
(s32)
cnode == -1)
return 0;
return cnode;
}
return 0;
return cnode;
}
@@
-76,10
+76,10
@@
inline phandle prom_getsibling(phandle node)
{
phandle sibnode;
{
phandle sibnode;
- if (node == -1)
+ if (
(s32)
node == -1)
return 0;
sibnode = __prom_getsibling(node);
return 0;
sibnode = __prom_getsibling(node);
- if (sibnode == -1)
+ if (
(s32)
sibnode == -1)
return 0;
return sibnode;
return 0;
return sibnode;
@@
-240,7
+240,7
@@
inline char *prom_firstprop(phandle node, char *buffer)
unsigned long args[7];
*buffer = 0;
unsigned long args[7];
*buffer = 0;
- if (node == -1)
+ if (
(s32)
node == -1)
return buffer;
args[0] = (unsigned long) prom_nextprop_name;
return buffer;
args[0] = (unsigned long) prom_nextprop_name;
@@
-266,7
+266,7
@@
inline char *prom_nextprop(phandle node, const char *oprop, char *buffer)
unsigned long args[7];
char buf[32];
unsigned long args[7];
char buf[32];
- if (node == -1) {
+ if (
(s32)
node == -1) {
*buffer = 0;
return buffer;
}
*buffer = 0;
return buffer;
}
@@
-369,7
+369,7
@@
inline phandle prom_inst2pkg(int inst)
p1275_cmd_direct(args);
node = (int) args[4];
p1275_cmd_direct(args);
node = (int) args[4];
- if (node == -1)
+ if (
(s32)
node == -1)
return 0;
return node;
}
return 0;
return node;
}