Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5773bbcdec54b7258cb9e2aa6f3459b4cbfd9dc5
Commit:     5773bbcdec54b7258cb9e2aa6f3459b4cbfd9dc5
Parent:     f050982a9b7c4edc414f0d5543c3cb24504223c6
Author:     Anton Blanchard <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 8 18:08:37 2006 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Sat Dec 9 11:39:06 2006 +1100

    [POWERPC] micro optimise pSeries_probe
    
    We find the OF root the line before, we may as well use it.
    
    Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/pseries/setup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/setup.c 
b/arch/powerpc/platforms/pseries/setup.c
index 6090d75..3e2f746 100644
--- 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"))
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to