patch-2.3.25 linux/drivers/sound/soundcard.c
Next file: linux/drivers/usb/acm.c
Previous file: linux/drivers/sound/sonicvibes.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Thu Oct 28 14:34:46 1999
- Orig file:
v2.3.24/linux/drivers/sound/soundcard.c
- Orig date:
Mon Oct 4 15:49:30 1999
diff -u --recursive --new-file v2.3.24/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -297,14 +297,6 @@
return len;
}
-#ifdef CONFIG_PROC_FS
-static struct proc_dir_entry proc_root_sound = {
- PROC_SOUND, 5, "sound",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, NULL, sound_proc_get_info
-};
-#endif
-
#ifndef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
@@ -756,7 +748,7 @@
/* printk("Sound: mmap() called twice for the same DMA buffer\n");*/
return -EIO;
}
- if (vma->vm_offset != 0)
+ if (vma->vm_pgoff != 0)
{
/* printk("Sound: mmap() offset must be 0.\n");*/
return -EINVAL;
@@ -855,7 +847,7 @@
}
#endif
#ifdef CONFIG_PROC_FS
- if (proc_register(&proc_root, &proc_root_sound))
+ if (!create_proc_info_entry("sound", 0, NULL, sound_proc_get_info))
printk(KERN_ERR "sound: registering /proc/sound failed\n");
#endif
}
@@ -935,10 +927,7 @@
{
return;
}
-#ifdef CONFIG_PROC_FS
- if (proc_unregister(&proc_root, PROC_SOUND))
- printk(KERN_ERR "sound: unregistering /proc/sound failed\n");
-#endif
+ remove_proc_entry("sound", NULL);
if (chrdev_registered)
destroy_special_devices();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)