linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / powerpc / kernel / rtas-proc.c
index 9c9ad1f..7a95b8a 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ *   arch/ppc64/kernel/rtas-proc.c
  *   Copyright (C) 2000 Tilmann Bitterberg
  *   (tilmann@bitterberg.de)
  *
@@ -257,12 +258,12 @@ static int __init proc_rtas_init(void)
 {
        struct proc_dir_entry *entry;
 
-       if (!machine_is(pseries))
-               return -ENODEV;
+       if (_machine != PLATFORM_PSERIES && _machine != PLATFORM_PSERIES_LPAR)
+               return 1;
 
        rtas_node = of_find_node_by_name(NULL, "rtas");
        if (rtas_node == NULL)
-               return -ENODEV;
+               return 1;
 
        entry = create_proc_entry("ppc64/rtas/progress", S_IRUGO|S_IWUSR, NULL);
        if (entry)