diff options
-rw-r--r-- | arch/powerpc/kernel/nvram_64.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c index 89d4af2a13ef..a8f9251f4cac 100644 --- a/arch/powerpc/kernel/nvram_64.c +++ b/arch/powerpc/kernel/nvram_64.c | |||
@@ -184,7 +184,7 @@ static struct miscdevice nvram_dev = { | |||
184 | 184 | ||
185 | 185 | ||
186 | #ifdef DEBUG_NVRAM | 186 | #ifdef DEBUG_NVRAM |
187 | static void nvram_print_partitions(char * label) | 187 | static void __init nvram_print_partitions(char * label) |
188 | { | 188 | { |
189 | struct list_head * p; | 189 | struct list_head * p; |
190 | struct nvram_partition * tmp_part; | 190 | struct nvram_partition * tmp_part; |
@@ -202,7 +202,7 @@ static void nvram_print_partitions(char * label) | |||
202 | #endif | 202 | #endif |
203 | 203 | ||
204 | 204 | ||
205 | static int nvram_write_header(struct nvram_partition * part) | 205 | static int __init nvram_write_header(struct nvram_partition * part) |
206 | { | 206 | { |
207 | loff_t tmp_index; | 207 | loff_t tmp_index; |
208 | int rc; | 208 | int rc; |
@@ -214,7 +214,7 @@ static int nvram_write_header(struct nvram_partition * part) | |||
214 | } | 214 | } |
215 | 215 | ||
216 | 216 | ||
217 | static unsigned char nvram_checksum(struct nvram_header *p) | 217 | static unsigned char __init nvram_checksum(struct nvram_header *p) |
218 | { | 218 | { |
219 | unsigned int c_sum, c_sum2; | 219 | unsigned int c_sum, c_sum2; |
220 | unsigned short *sp = (unsigned short *)p->name; /* assume 6 shorts */ | 220 | unsigned short *sp = (unsigned short *)p->name; /* assume 6 shorts */ |
@@ -228,7 +228,7 @@ static unsigned char nvram_checksum(struct nvram_header *p) | |||
228 | return c_sum; | 228 | return c_sum; |
229 | } | 229 | } |
230 | 230 | ||
231 | static int nvram_remove_os_partition(void) | 231 | static int __init nvram_remove_os_partition(void) |
232 | { | 232 | { |
233 | struct list_head *i; | 233 | struct list_head *i; |
234 | struct list_head *j; | 234 | struct list_head *j; |
@@ -294,7 +294,7 @@ static int nvram_remove_os_partition(void) | |||
294 | * Will create a partition starting at the first free | 294 | * Will create a partition starting at the first free |
295 | * space found if space has enough room. | 295 | * space found if space has enough room. |
296 | */ | 296 | */ |
297 | static int nvram_create_os_partition(void) | 297 | static int __init nvram_create_os_partition(void) |
298 | { | 298 | { |
299 | struct nvram_partition *part; | 299 | struct nvram_partition *part; |
300 | struct nvram_partition *new_part; | 300 | struct nvram_partition *new_part; |
@@ -397,7 +397,7 @@ static int nvram_create_os_partition(void) | |||
397 | * 5.) If the max chunk cannot be allocated then try finding a chunk | 397 | * 5.) If the max chunk cannot be allocated then try finding a chunk |
398 | * that will satisfy the minum needed (NVRAM_MIN_REQ). | 398 | * that will satisfy the minum needed (NVRAM_MIN_REQ). |
399 | */ | 399 | */ |
400 | static int nvram_setup_partition(void) | 400 | static int __init nvram_setup_partition(void) |
401 | { | 401 | { |
402 | struct list_head * p; | 402 | struct list_head * p; |
403 | struct nvram_partition * part; | 403 | struct nvram_partition * part; |
@@ -455,7 +455,7 @@ static int nvram_setup_partition(void) | |||
455 | } | 455 | } |
456 | 456 | ||
457 | 457 | ||
458 | static int nvram_scan_partitions(void) | 458 | static int __init nvram_scan_partitions(void) |
459 | { | 459 | { |
460 | loff_t cur_index = 0; | 460 | loff_t cur_index = 0; |
461 | struct nvram_header phead; | 461 | struct nvram_header phead; |