diff options
Diffstat (limited to 'arch/sparc/prom/misc_64.c')
-rw-r--r-- | arch/sparc/prom/misc_64.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/arch/sparc/prom/misc_64.c b/arch/sparc/prom/misc_64.c index 6cb1581d6aef..e4f31d4d3715 100644 --- a/arch/sparc/prom/misc_64.c +++ b/arch/sparc/prom/misc_64.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/system.h> | 18 | #include <asm/system.h> |
19 | #include <asm/ldc.h> | 19 | #include <asm/ldc.h> |
20 | 20 | ||
21 | int prom_service_exists(const char *service_name) | 21 | static int prom_service_exists(const char *service_name) |
22 | { | 22 | { |
23 | unsigned long args[5]; | 23 | unsigned long args[5]; |
24 | 24 | ||
@@ -150,20 +150,6 @@ void prom_halt_power_off(void) | |||
150 | prom_halt(); | 150 | prom_halt(); |
151 | } | 151 | } |
152 | 152 | ||
153 | /* Set prom sync handler to call function 'funcp'. */ | ||
154 | void prom_setcallback(callback_func_t funcp) | ||
155 | { | ||
156 | unsigned long args[5]; | ||
157 | if (!funcp) | ||
158 | return; | ||
159 | args[0] = (unsigned long) "set-callback"; | ||
160 | args[1] = 1; | ||
161 | args[2] = 1; | ||
162 | args[3] = (unsigned long) funcp; | ||
163 | args[4] = (unsigned long) -1; | ||
164 | p1275_cmd_direct(args); | ||
165 | } | ||
166 | |||
167 | /* Get the idprom and stuff it into buffer 'idbuf'. Returns the | 153 | /* Get the idprom and stuff it into buffer 'idbuf'. Returns the |
168 | * format type. 'num_bytes' is the number of bytes that your idbuf | 154 | * format type. 'num_bytes' is the number of bytes that your idbuf |
169 | * has space for. Returns 0xff on error. | 155 | * has space for. Returns 0xff on error. |
@@ -183,7 +169,8 @@ unsigned char prom_get_idprom(char *idbuf, int num_bytes) | |||
183 | 169 | ||
184 | int prom_get_mmu_ihandle(void) | 170 | int prom_get_mmu_ihandle(void) |
185 | { | 171 | { |
186 | int node, ret; | 172 | phandle node; |
173 | int ret; | ||
187 | 174 | ||
188 | if (prom_mmu_ihandle_cache != 0) | 175 | if (prom_mmu_ihandle_cache != 0) |
189 | return prom_mmu_ihandle_cache; | 176 | return prom_mmu_ihandle_cache; |
@@ -201,7 +188,8 @@ int prom_get_mmu_ihandle(void) | |||
201 | static int prom_get_memory_ihandle(void) | 188 | static int prom_get_memory_ihandle(void) |
202 | { | 189 | { |
203 | static int memory_ihandle_cache; | 190 | static int memory_ihandle_cache; |
204 | int node, ret; | 191 | phandle node; |
192 | int ret; | ||
205 | 193 | ||
206 | if (memory_ihandle_cache != 0) | 194 | if (memory_ihandle_cache != 0) |
207 | return memory_ihandle_cache; | 195 | return memory_ihandle_cache; |