patch-2.3.39 linux/drivers/sound/trident.c
Next file: linux/drivers/telephony/ixj.c
Previous file: linux/drivers/scsi/sym53c8xx_defs.h
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Mon Jan 10 14:05:33 2000
- Orig file:
v2.3.38/linux/drivers/sound/trident.c
- Orig date:
Fri Jan 7 19:13:22 2000
diff -u --recursive --new-file v2.3.38/linux/drivers/sound/trident.c linux/drivers/sound/trident.c
@@ -29,6 +29,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* History
+ * v0.05 Jan 08 2000 Luca Montecchiani <m.luca@iname.com>
+ * adapt to 2.3.x new __setup/__initcall
* v0.04 Dec 31 1999 Ollie Lho
* Multiple Open, useing Middle Loop Interrupt to smooth playback
* v0.03 Dec 24 1999 Ollie Lho
@@ -68,7 +70,7 @@
#undef DEBUG
-#define DRIVER_VERSION "0.03"
+#define DRIVER_VERSION "0.05"
#define TRIDENT_FMT_STEREO 0x01
#define TRIDENT_FMT_16BIT 0x02
@@ -2921,11 +2923,7 @@
return 1;
}
-#ifdef MODULE
-int init_module(void)
-#else
-int __init init_trident(void)
-#endif
+static int __init init_trident(void)
{
struct pci_dev *pcidev = NULL;
int foundone = 0;
@@ -2951,15 +2949,14 @@
return 0;
}
-#ifdef MODULE
-MODULE_AUTHOR("Alan Cox <alan@redhat.com>");
+MODULE_AUTHOR("Alan Cox, Aaron Holtzman, Ollie Lho");
MODULE_DESCRIPTION("Trident 4DWave/SiS 7018 PCI Audio Driver");
#ifdef DEBUG
MODULE_PARM(debug,"i");
#endif
-void cleanup_module(void)
+static void __exit cleanup_trident(void)
{
while (devs != NULL) {
/* Kill interrupts, and SP/DIF */
@@ -2978,6 +2975,8 @@
devs = devs->next;
}
}
-#endif /* MODULE */
+
+module_init(init_trident);
+module_exit(cleanup_trident);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)