projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc: Fix compile error when CONFIG_PROC_VMCORE is not defined
[powerpc.git]
/
arch
/
powerpc
/
kernel
/
rtas-proc.c
diff --git
a/arch/powerpc/kernel/rtas-proc.c
b/arch/powerpc/kernel/rtas-proc.c
index
5bdd5b0
..
7a95b8a
100644
(file)
--- a/
arch/powerpc/kernel/rtas-proc.c
+++ b/
arch/powerpc/kernel/rtas-proc.c
@@
-32,7
+32,6
@@
#include <asm/rtas.h>
#include <asm/machdep.h> /* for ppc_md */
#include <asm/time.h>
#include <asm/rtas.h>
#include <asm/machdep.h> /* for ppc_md */
#include <asm/time.h>
-#include <asm/systemcfg.h>
/* Token for Sensors */
#define KEY_SWITCH 0x0001
/* Token for Sensors */
#define KEY_SWITCH 0x0001
@@
-259,7
+258,7
@@
static int __init proc_rtas_init(void)
{
struct proc_dir_entry *entry;
{
struct proc_dir_entry *entry;
- if (
!(systemcfg->platform & PLATFORM_PSERIES)
)
+ if (
_machine != PLATFORM_PSERIES && _machine != PLATFORM_PSERIES_LPAR
)
return 1;
rtas_node = of_find_node_by_name(NULL, "rtas");
return 1;
rtas_node = of_find_node_by_name(NULL, "rtas");