patch-2.1.43 linux/arch/m68k/amiga/amisound.c

Next file: linux/arch/m68k/amiga/config.c
Previous file: linux/arch/m68k/amiga/amikeyb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/arch/m68k/amiga/amisound.c linux/arch/m68k/amiga/amisound.c
@@ -40,7 +40,7 @@
 
 static u_long clock_constant;
 
-__initfunc(static void init_sound(void))
+__initfunc(void amiga_init_sound(void))
 {
 	snd_data = amiga_chip_alloc(sizeof(sine_data));
 	if (!snd_data) {
@@ -58,13 +58,7 @@
 
 void amiga_mksound( unsigned int hz, unsigned int ticks )
 {
-	static int inited = 0;
 	unsigned long flags;
-
-	if (!inited) {
-		init_sound();
-		inited = 1;
-	}
 
 	if (!snd_data)
 		return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov