patch-2.4.6 linux/drivers/sbus/audio/amd7930.c
Next file: linux/drivers/sbus/audio/audio.c
Previous file: linux/drivers/sbus/audio/Makefile
Back to the patch index
Back to the overall index
- Lines: 72
- Date:
Mon Jun 11 19:15:27 2001
- Orig file:
v2.4.5/linux/drivers/sbus/audio/amd7930.c
- Orig date:
Sun Feb 18 19:49:54 2001
diff -u --recursive --new-file v2.4.5/linux/drivers/sbus/audio/amd7930.c linux/drivers/sbus/audio/amd7930.c
@@ -1,4 +1,4 @@
-/* $Id: amd7930.c,v 1.26 2001/02/13 01:16:59 davem Exp $
+/* $Id: amd7930.c,v 1.27 2001/05/21 01:25:22 davem Exp $
* drivers/sbus/audio/amd7930.c
*
* Copyright (C) 1996,1997 Thomas K. Dyas (tdyas@eden.rutgers.edu)
@@ -107,7 +107,7 @@
static __u8 linear2mulaw(__u16 data);
static __u16 mulaw2linear(__u8 data);
-#if defined (AMD79C30_ISDN) && defined (LINUX_VERSION_CODE) && LINUX_VERSION_CODE > 0x200ff
+#if defined (AMD79C30_ISDN)
#include "../../isdn/hisax/hisax.h"
#include "../../isdn/hisax/isdnl1.h"
#include "../../isdn/hisax/foreign.h"
@@ -1131,7 +1131,7 @@
*
*/
-#if defined (AMD79C30_ISDN) && defined (LINUX_VERSION_CODE) && LINUX_VERSION_CODE > 0x200ff
+#if defined (AMD79C30_ISDN)
static int amd7930_get_irqnum(int dev)
{
struct amd7930_info *info;
@@ -1659,9 +1659,8 @@
return 0;
}
-#ifdef MODULE
/* Detach from an amd7930 chip given the device structure. */
-static void amd7930_detach(struct sparcaudio_driver *drv)
+static void __exit amd7930_detach(struct sparcaudio_driver *drv)
{
struct amd7930_info *info = (struct amd7930_info *)drv->private;
@@ -1672,14 +1671,9 @@
sbus_iounmap(info->regs, info->regs_size);
kfree(drv->private);
}
-#endif
/* Probe for the amd7930 chip and then attach the driver. */
-#ifdef MODULE
-int init_module(void)
-#else
-int __init amd7930_init(void)
-#endif
+static int __init amd7930_init(void)
{
struct sbus_bus *sbus;
struct sbus_dev *sdev;
@@ -1710,8 +1704,7 @@
return (num_drivers > 0) ? 0 : -EIO;
}
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit amd7930_exit(void)
{
register int i;
@@ -1720,8 +1713,9 @@
num_drivers--;
}
}
-#endif
+module_init(amd7930_init);
+module_exit(amd7930_exit);
/*************************************************************/
/* Audio format conversion */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)