diff options
-rw-r--r-- | arch/powerpc/platforms/cell/setup.c | 2 | ||||
-rw-r--r-- | include/asm-powerpc/nvram.h | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c index 7f42b7d0adcb..4f6347c9fe68 100644 --- a/arch/powerpc/platforms/cell/setup.c +++ b/arch/powerpc/platforms/cell/setup.c | |||
@@ -179,9 +179,7 @@ static void __init cell_setup_arch(void) | |||
179 | conswitchp = &dummy_con; | 179 | conswitchp = &dummy_con; |
180 | #endif | 180 | #endif |
181 | 181 | ||
182 | #ifdef CONFIG_MMIO_NVRAM | ||
183 | mmio_nvram_init(); | 182 | mmio_nvram_init(); |
184 | #endif | ||
185 | } | 183 | } |
186 | 184 | ||
187 | static int __init cell_probe(void) | 185 | static int __init cell_probe(void) |
diff --git a/include/asm-powerpc/nvram.h b/include/asm-powerpc/nvram.h index 9877982508bf..4e7059cc6113 100644 --- a/include/asm-powerpc/nvram.h +++ b/include/asm-powerpc/nvram.h | |||
@@ -10,6 +10,8 @@ | |||
10 | #ifndef _ASM_POWERPC_NVRAM_H | 10 | #ifndef _ASM_POWERPC_NVRAM_H |
11 | #define _ASM_POWERPC_NVRAM_H | 11 | #define _ASM_POWERPC_NVRAM_H |
12 | 12 | ||
13 | #include <linux/errno.h> | ||
14 | |||
13 | #define NVRW_CNT 0x20 | 15 | #define NVRW_CNT 0x20 |
14 | #define NVRAM_HEADER_LEN 16 /* sizeof(struct nvram_header) */ | 16 | #define NVRAM_HEADER_LEN 16 /* sizeof(struct nvram_header) */ |
15 | #define NVRAM_BLOCK_LEN 16 | 17 | #define NVRAM_BLOCK_LEN 16 |
@@ -71,7 +73,16 @@ extern int nvram_clear_error_log(void); | |||
71 | extern struct nvram_partition *nvram_find_partition(int sig, const char *name); | 73 | extern struct nvram_partition *nvram_find_partition(int sig, const char *name); |
72 | 74 | ||
73 | extern int pSeries_nvram_init(void); | 75 | extern int pSeries_nvram_init(void); |
76 | |||
77 | #ifdef CONFIG_MMIO_NVRAM | ||
74 | extern int mmio_nvram_init(void); | 78 | extern int mmio_nvram_init(void); |
79 | #else | ||
80 | static inline int mmio_nvram_init(void) | ||
81 | { | ||
82 | return -ENODEV; | ||
83 | } | ||
84 | #endif | ||
85 | |||
75 | #endif /* __KERNEL__ */ | 86 | #endif /* __KERNEL__ */ |
76 | 87 | ||
77 | /* PowerMac specific nvram stuffs */ | 88 | /* PowerMac specific nvram stuffs */ |