aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/pseries/setup.c')
-rw-r--r--arch/powerpc/platforms/pseries/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index 6090d753c44c..3e2f7467057d 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,
433static int __init pSeries_probe(void) 433static int __init pSeries_probe(void)
434{ 434{
435 unsigned long root = of_get_flat_dt_root(); 435 unsigned long root = of_get_flat_dt_root();
436 char *dtype = of_get_flat_dt_prop(of_get_flat_dt_root(), 436 char *dtype = of_get_flat_dt_prop(root, "device_type", NULL);
437 "device_type", NULL); 437
438 if (dtype == NULL) 438 if (dtype == NULL)
439 return 0; 439 return 0;
440 if (strcmp(dtype, "chrp")) 440 if (strcmp(dtype, "chrp"))