summaryrefslogtreecommitdiffstats
path: root/drivers/sound/msnd_pinnacle.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-10-05 01:18:40 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-10-05 01:18:40 +0000
commit012bb3e61e5eced6c610f9e036372bf0c8def2d1 (patch)
tree87efc733f9b164e8c85c0336f92c8fb7eff6d183 /drivers/sound/msnd_pinnacle.c
parent625a1589d3d6464b5d90b8a0918789e3afffd220 (diff)
Merge with Linux 2.4.0-test9. Please check DECstation, I had a number
of rejects to fixup while integrating Linus patches. I also found that this kernel will only boot SMP on Origin; the UP kernel freeze soon after bootup with SCSI timeout messages. I commit this anyway since I found that the last CVS versions had the same problem.
Diffstat (limited to 'drivers/sound/msnd_pinnacle.c')
-rw-r--r--drivers/sound/msnd_pinnacle.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/sound/msnd_pinnacle.c b/drivers/sound/msnd_pinnacle.c
index 59d805c7b..dc3e548c6 100644
--- a/drivers/sound/msnd_pinnacle.c
+++ b/drivers/sound/msnd_pinnacle.c
@@ -1610,10 +1610,6 @@ static int digital __initdata;
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 @@ static int fifosize __initdata = CONFIG_MSND_FIFOSIZE;
#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 @@ int __init msnd_pinnacle_init(void)
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);