aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/reconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/pseries/reconfig.c')
-rw-r--r--arch/powerpc/platforms/pseries/reconfig.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platforms/pseries/reconfig.c
index 1c0a60d98867..0f319521e002 100644
--- a/arch/powerpc/platforms/pseries/reconfig.c
+++ b/arch/powerpc/platforms/pseries/reconfig.c
@@ -446,13 +446,10 @@ static int proc_ppc64_create_ofdt(void)
446{ 446{
447 struct proc_dir_entry *ent; 447 struct proc_dir_entry *ent;
448 448
449 if (!machine_is(pseries))
450 return 0;
451
452 ent = proc_create("powerpc/ofdt", S_IWUSR, NULL, &ofdt_fops); 449 ent = proc_create("powerpc/ofdt", S_IWUSR, NULL, &ofdt_fops);
453 if (ent) 450 if (ent)
454 proc_set_size(ent, 0); 451 proc_set_size(ent, 0);
455 452
456 return 0; 453 return 0;
457} 454}
458__initcall(proc_ppc64_create_ofdt); 455machine_device_initcall(pseries, proc_ppc64_create_ofdt);