projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f050982
)
[POWERPC] micro optimise pSeries_probe
author
Anton Blanchard
<anton@samba.org>
Fri, 8 Dec 2006 07:08:37 +0000
(18:08 +1100)
committer
Paul Mackerras
<paulus@samba.org>
Sat, 9 Dec 2006 00:39:06 +0000
(11:39 +1100)
We find the OF root the line before, we may as well use it.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/setup.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/pseries/setup.c
b/arch/powerpc/platforms/pseries/setup.c
index 6090d753c44cad44634e3c1c3870466321d07119..3e2f7467057d79f4ddf6b9f908e473fb55faeff5 100644
(file)
--- a/
arch/powerpc/platforms/pseries/setup.c
+++ b/
arch/powerpc/platforms/pseries/setup.c
@@
-433,8
+433,8
@@
static int __init pSeries_probe_hypertas(unsigned long node,
static int __init pSeries_probe(void)
{
unsigned long root = of_get_flat_dt_root();
- char *dtype = of_get_flat_dt_prop(
of_get_flat_dt_root(),
- "device_type", NULL);
+ char *dtype = of_get_flat_dt_prop(
root, "device_type", NULL);
+
if (dtype == NULL)
return 0;
if (strcmp(dtype, "chrp"))