diff options
Diffstat (limited to 'arch/ppc/syslib/prep_nvram.c')
-rw-r--r-- | arch/ppc/syslib/prep_nvram.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/ppc/syslib/prep_nvram.c b/arch/ppc/syslib/prep_nvram.c index 8599850ca772..2c6364d9641f 100644 --- a/arch/ppc/syslib/prep_nvram.c +++ b/arch/ppc/syslib/prep_nvram.c | |||
@@ -22,14 +22,14 @@ | |||
22 | static char nvramData[MAX_PREP_NVRAM]; | 22 | static char nvramData[MAX_PREP_NVRAM]; |
23 | static NVRAM_MAP *nvram=(NVRAM_MAP *)&nvramData[0]; | 23 | static NVRAM_MAP *nvram=(NVRAM_MAP *)&nvramData[0]; |
24 | 24 | ||
25 | unsigned char __prep prep_nvram_read_val(int addr) | 25 | unsigned char prep_nvram_read_val(int addr) |
26 | { | 26 | { |
27 | outb(addr, PREP_NVRAM_AS0); | 27 | outb(addr, PREP_NVRAM_AS0); |
28 | outb(addr>>8, PREP_NVRAM_AS1); | 28 | outb(addr>>8, PREP_NVRAM_AS1); |
29 | return inb(PREP_NVRAM_DATA); | 29 | return inb(PREP_NVRAM_DATA); |
30 | } | 30 | } |
31 | 31 | ||
32 | void __prep prep_nvram_write_val(int addr, | 32 | void prep_nvram_write_val(int addr, |
33 | unsigned char val) | 33 | unsigned char val) |
34 | { | 34 | { |
35 | outb(addr, PREP_NVRAM_AS0); | 35 | outb(addr, PREP_NVRAM_AS0); |
@@ -81,8 +81,7 @@ void __init init_prep_nvram(void) | |||
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
84 | __prep | 84 | char *prep_nvram_get_var(const char *name) |
85 | char __prep *prep_nvram_get_var(const char *name) | ||
86 | { | 85 | { |
87 | char *cp; | 86 | char *cp; |
88 | int namelen; | 87 | int namelen; |
@@ -101,8 +100,7 @@ char __prep *prep_nvram_get_var(const char *name) | |||
101 | return NULL; | 100 | return NULL; |
102 | } | 101 | } |
103 | 102 | ||
104 | __prep | 103 | char *prep_nvram_first_var(void) |
105 | char __prep *prep_nvram_first_var(void) | ||
106 | { | 104 | { |
107 | if (nvram->Header.GELength == 0) { | 105 | if (nvram->Header.GELength == 0) { |
108 | return NULL; | 106 | return NULL; |
@@ -112,8 +110,7 @@ char __prep *prep_nvram_first_var(void) | |||
112 | } | 110 | } |
113 | } | 111 | } |
114 | 112 | ||
115 | __prep | 113 | char *prep_nvram_next_var(char *name) |
116 | char __prep *prep_nvram_next_var(char *name) | ||
117 | { | 114 | { |
118 | char *cp; | 115 | char *cp; |
119 | 116 | ||