2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-05 19:15:05 +00:00

We don't actually use the reset functions anywhere, and nothing really

provides them.
This commit is contained in:
Michael Brown 2007-07-03 20:34:51 +01:00
parent 5ce5e6d846
commit fae10a7ca1
10 changed files with 9 additions and 21 deletions

View File

@ -85,6 +85,6 @@ void cpu_setup(void)
identify_cpu(&cpu_info);
}
INIT_FN ( INIT_CPU, cpu_setup, NULL, NULL );
INIT_FN ( INIT_CPU, cpu_setup, NULL );
#endif /* CONFIG_X86_64 */

View File

@ -28,4 +28,4 @@ static void gdb_symbol_line ( void ) {
getkey();
}
INIT_FN ( INIT_GDBSYM, gdb_symbol_line, NULL, NULL );
INIT_FN ( INIT_GDBSYM, gdb_symbol_line, NULL );

View File

@ -191,4 +191,4 @@ int timer2_running(void)
#endif /* RTC_CURRTICKS */
INIT_FN ( INIT_TIMERS, setup_timers, NULL, NULL );
INIT_FN ( INIT_TIMERS, setup_timers, NULL );

View File

@ -99,4 +99,4 @@ struct console_driver vga_console __console_driver = {
.disabled = 1,
};
INIT_FN ( INIT_CONSOLE, video_init, NULL, NULL );
INIT_FN ( INIT_CONSOLE, video_init, NULL );

View File

@ -417,7 +417,7 @@ struct console_driver btext_console __console_driver = {
.disabled = 1,
};
INIT_FN ( INIT_CONSOLE, btext_init, NULL, NULL );
INIT_FN ( INIT_CONSOLE, btext_init, NULL );
//come from linux/drivers/video/font-8x16.c

View File

@ -23,15 +23,6 @@ void call_init_fns ( void ) {
}
}
void call_reset_fns ( void ) {
struct init_fn *init_fn;
for ( init_fn = init_fns; init_fn < init_fns_end ; init_fn++ ) {
if ( init_fn->reset )
init_fn->reset ();
}
}
void call_exit_fns ( void ) {
struct init_fn *init_fn;

View File

@ -264,6 +264,6 @@ static void pcmcia_shutdown_all(void) {
printf("Shutdown of PCMCIA subsystem completed");
}
INIT_FN ( INIT_PCMCIA, pcmcia_init_all, NULL, pcmcia_shutdown_all );
INIT_FN ( INIT_PCMCIA, pcmcia_init_all, pcmcia_shutdown_all );
#endif

View File

@ -250,5 +250,5 @@ struct console_driver serial_console __console_driver = {
.disabled = 1,
};
INIT_FN ( INIT_CONSOLE, serial_init, NULL, serial_fini );
INIT_FN ( INIT_CONSOLE, serial_init, serial_fini );

View File

@ -30,7 +30,6 @@
struct init_fn {
void ( *init ) ( void );
void ( *reset ) ( void );
void ( *exit ) ( void );
};
@ -44,18 +43,16 @@ struct init_fn {
#define INIT_RPC 11
/* Macro for creating an initialisation function table entry */
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
#define INIT_FN( init_order, init_func, exit_func ) \
struct init_fn PREFIX_OBJECT(init_fn__) \
__table ( struct init_fn, init_fn, init_order ) = { \
.init = init_func, \
.reset = reset_func, \
.exit = exit_func, \
};
/* Function prototypes */
void call_init_fns ( void );
void call_reset_fns ( void );
void call_exit_fns ( void );
#endif /* _GPXE_INIT_H */

View File

@ -608,7 +608,7 @@ nfssymlink:
return 1;
}
INIT_FN ( INIT_RPC, rpc_init, nfs_reset, nfs_reset );
INIT_FN ( INIT_RPC, rpc_init, nfs_reset );
struct protocol nfs_protocol __protocol = {
.name = "nfs",