diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-16 15:50:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-16 15:50:19 -0500 |
commit | c540ee70e49b573535c7ddfd0e9a0fc9d549c8b7 (patch) | |
tree | 26c47815c3159d70f54cbb5ffd0eab91e8433675 /arch | |
parent | f7b5f55ac1623dfde24ef5319ad77c1746645f3f (diff) |
sparc64: Delete prom_setcallback().
Unused.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/include/asm/oplib_64.h | 8 | ||||
-rw-r--r-- | arch/sparc/prom/misc_64.c | 14 |
2 files changed, 0 insertions, 22 deletions
diff --git a/arch/sparc/include/asm/oplib_64.h b/arch/sparc/include/asm/oplib_64.h index daf02d314279..56985e300471 100644 --- a/arch/sparc/include/asm/oplib_64.h +++ b/arch/sparc/include/asm/oplib_64.h | |||
@@ -88,14 +88,6 @@ extern void prom_halt(void) __attribute__ ((noreturn)); | |||
88 | /* Halt and power-off the machine. */ | 88 | /* Halt and power-off the machine. */ |
89 | extern void prom_halt_power_off(void) __attribute__ ((noreturn)); | 89 | extern void prom_halt_power_off(void) __attribute__ ((noreturn)); |
90 | 90 | ||
91 | /* Set the PROM 'sync' callback function to the passed function pointer. | ||
92 | * When the user gives the 'sync' command at the prom prompt while the | ||
93 | * kernel is still active, the prom will call this routine. | ||
94 | * | ||
95 | */ | ||
96 | typedef int (*callback_func_t)(long *cmd); | ||
97 | extern void prom_setcallback(callback_func_t func_ptr); | ||
98 | |||
99 | /* Acquire the IDPROM of the root node in the prom device tree. This | 91 | /* Acquire the IDPROM of the root node in the prom device tree. This |
100 | * gets passed a buffer where you would like it stuffed. The return value | 92 | * gets passed a buffer where you would like it stuffed. The return value |
101 | * is the format type of this idprom or 0xff on error. | 93 | * is the format type of this idprom or 0xff on error. |
diff --git a/arch/sparc/prom/misc_64.c b/arch/sparc/prom/misc_64.c index b900fdf829a0..e4f31d4d3715 100644 --- a/arch/sparc/prom/misc_64.c +++ b/arch/sparc/prom/misc_64.c | |||
@@ -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. |