# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
# 
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
# 
# ROCK Linux: rock-src/package/base/alsa-driver/devfs.patch.2.2
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
# 
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
# 
# --- ROCK-COPYRIGHT-NOTE-END ---

diff -ruN alsa-driver-0.9.0beta1/kernel/sound.c alsa-driver/kernel/sound.c
--- kernel/sound.c	Thu Feb 15 00:05:41 2001
+++ kernel/sound.c	Sun Feb 25 06:11:40 2001
@@ -305,7 +305,7 @@
 		return err;
 #endif
 #ifdef CONFIG_DEVFS_FS
-	devfs_handle = devfs_mk_dir(NULL, "snd", NULL);
+	devfs_handle = devfs_mk_dir(NULL, "snd", 0, NULL);
 	if (devfs_register_chrdev(snd_major, "alsa", &snd_fops)) {
 #else
 	if (register_chrdev(snd_major, "alsa", &snd_fops)) {
@@ -357,7 +357,7 @@
 
 	for (controlnum = 0; controlnum < snd_cards_limit; controlnum++) {
 		sprintf(controlname, "snd/controlC%d", controlnum);
-		master = devfs_find_handle(NULL, controlname, 0, 0, DEVFS_SPECIAL_CHR, 0);
+		master = devfs_find_handle(NULL, controlname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
 		devfs_unregister(master);
 	}
 #endif
--- kernel/info.c	Thu Feb 15 15:17:41 2001
+++ kernel/info.c	Sun Feb 25 06:13:33 2001
@@ -921,7 +921,7 @@
 #ifdef CONFIG_DEVFS_FS
 	if (entry->p && strncmp(entry->name, "controlD", 8)) {
 		sprintf(dname, "snd/%s", entry->name);
-		master = devfs_find_handle(NULL, dname, 0, 0, DEVFS_SPECIAL_CHR, 0);
+		master = devfs_find_handle(NULL, dname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
 		devfs_unregister(master);
 	}
 #endif