patch-2.3.46 linux/drivers/sbus/audio/audio.c
Next file: linux/drivers/sbus/char/bpp.c
Previous file: linux/drivers/pcmcia/tcic.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Wed Feb 16 15:42:05 2000
- Orig file:
v2.3.45/linux/drivers/sbus/audio/audio.c
- Orig date:
Thu Feb 10 17:11:12 2000
diff -u --recursive --new-file v2.3.45/linux/drivers/sbus/audio/audio.c linux/drivers/sbus/audio/audio.c
@@ -32,6 +32,7 @@
#include <linux/init.h>
#include <linux/soundcard.h>
#include <linux/version.h>
+#include <linux/devfs_fs_kernel.h>
#include <asm/delay.h>
#include <asm/pgtable.h>
@@ -2198,9 +2199,8 @@
#endif
/* Register our character device driver with the VFS. */
- if (register_chrdev(SOUND_MAJOR, "sparcaudio", &sparcaudio_fops))
+ if (devfs_register_chrdev(SOUND_MAJOR, "sparcaudio", &sparcaudio_fops))
return -EIO;
-
#ifdef CONFIG_SPARCAUDIO_AMD7930
amd7930_init();
@@ -2221,7 +2221,7 @@
#ifdef MODULE
void cleanup_module(void)
{
- unregister_chrdev(SOUND_MAJOR, "sparcaudio");
+ devfs_unregister_chrdev(SOUND_MAJOR, "sparcaudio");
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)