patch-2.4.0-test9 linux/drivers/sound/msnd_pinnacle.c
Next file: linux/drivers/sound/opl3.c
Previous file: linux/drivers/sound/mpu401.h
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Mon Sep 25 12:32:54 2000
- Orig file:
v2.4.0-test8/linux/drivers/sound/msnd_pinnacle.c
- Orig date:
Mon Aug 7 21:01:35 2000
diff -u --recursive --new-file v2.4.0-test8/linux/drivers/sound/msnd_pinnacle.c linux/drivers/sound/msnd_pinnacle.c
@@ -1610,10 +1610,6 @@
static int fifosize __initdata = DEFFIFOSIZE;
static int calibrate_signal __initdata;
-/* If we're a module, this is just init_module */
-
-int init_module(void)
-
#else /* not a module */
static int write_ndelay __initdata = -1;
@@ -1692,14 +1688,10 @@
#endif
static int
calibrate_signal __initdata = CONFIG_MSND_CALSIGNAL;
+#endif /* MODULE */
-#ifdef MSND_CLASSIC
-int __init msnd_classic_init(void)
-#else
-int __init msnd_pinnacle_init(void)
-#endif /* MSND_CLASSIC */
-#endif /* MODULE */
+static int __init msnd_init(void)
{
int err;
#ifndef MSND_CLASSIC
@@ -1875,11 +1867,12 @@
return 0;
}
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit msdn_cleanup(void)
{
unload_multisound();
msnd_fifo_free(&dev.DAPF);
msnd_fifo_free(&dev.DARF);
}
-#endif
+
+module_init(msnd_init);
+module_exit(msdn_cleanup);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)