X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fkernel%2Frtas-proc.c;fp=arch%2Fpowerpc%2Fkernel%2Frtas-proc.c;h=7a95b8a283548cfca73e75f76ad74c1a77744ca4;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=9c9ad1fa9cce90748c7362d5dea5d744cdd84f08;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/arch/powerpc/kernel/rtas-proc.c b/arch/powerpc/kernel/rtas-proc.c index 9c9ad1fa9..7a95b8a28 100644 --- a/arch/powerpc/kernel/rtas-proc.c +++ b/arch/powerpc/kernel/rtas-proc.c @@ -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)