Browse Source

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

provides them.
tags/v0.9.3
Michael Brown 17 years ago
parent
commit
fae10a7ca1

+ 1
- 1
src/arch/i386/core/cpu.c View File

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

+ 1
- 1
src/arch/i386/core/gdbsym.c View File

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

+ 1
- 1
src/arch/i386/core/i386_timer.c View File

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

+ 1
- 1
src/arch/i386/core/video_subr.c View File

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

+ 1
- 1
src/core/btext.c View File

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

+ 0
- 9
src/core/init.c View File

@@ -23,15 +23,6 @@ void call_init_fns ( void ) {
23 23
 	}
24 24
 }
25 25
 
26
-void call_reset_fns ( void ) {
27
-	struct init_fn *init_fn;
28
-
29
-	for ( init_fn = init_fns; init_fn < init_fns_end ; init_fn++ ) {
30
-		if ( init_fn->reset )
31
-			init_fn->reset ();
32
-	}
33
-}
34
-
35 26
 void call_exit_fns ( void ) {
36 27
 	struct init_fn *init_fn;
37 28
 

+ 1
- 1
src/core/pcmcia.c View File

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

+ 1
- 1
src/core/serial.c View File

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

+ 1
- 4
src/include/gpxe/init.h View File

@@ -30,7 +30,6 @@
30 30
 
31 31
 struct init_fn {
32 32
 	void ( *init ) ( void );
33
-	void ( *reset ) ( void );
34 33
 	void ( *exit ) ( void );
35 34
 };
36 35
 
@@ -44,18 +43,16 @@ struct init_fn {
44 43
 #define	INIT_RPC	11
45 44
 
46 45
 /* Macro for creating an initialisation function table entry */
47
-#define INIT_FN( init_order, init_func, reset_func, exit_func )	\
46
+#define INIT_FN( init_order, init_func, exit_func )	\
48 47
 	struct init_fn PREFIX_OBJECT(init_fn__)			\
49 48
 	    __table ( struct init_fn, init_fn, init_order ) = {	\
50 49
 		.init = init_func,				\
51
-		.reset = reset_func,				\
52 50
 		.exit = exit_func,				\
53 51
 	};
54 52
 
55 53
 /* Function prototypes */
56 54
 
57 55
 void call_init_fns ( void );
58
-void call_reset_fns ( void );
59 56
 void call_exit_fns ( void );
60 57
 
61 58
 #endif /* _GPXE_INIT_H */

+ 1
- 1
src/proto/nfs.c View File

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

Loading…
Cancel
Save