patch-2.4.0-test7 linux/drivers/sound/soundmodule.h

Next file: linux/drivers/sound/sscape.c
Previous file: linux/drivers/sound/soundcard.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/drivers/sound/soundmodule.h linux/drivers/sound/soundmodule.h
@@ -1,29 +0,0 @@
-#ifndef _SOUNDMODULE_H
-#define _SOUNDMODULE_H
-
-#include <linux/notifier.h>
-#include <linux/module.h>
-
-extern struct notifier_block *sound_locker;
-extern void sound_notifier_chain_register(struct notifier_block *);
-
-#define SOUND_LOCK		sound_notifier_chain_register(&sound_notifier); 
-#define SOUND_LOCK_END		notifier_chain_unregister(&sound_locker, &sound_notifier)
-
-static int my_notifier_call(struct notifier_block *b, unsigned long foo, void *bar)
-{
-	if(foo)
-		MOD_INC_USE_COUNT;
-	else
-		MOD_DEC_USE_COUNT;
-	return NOTIFY_DONE;
-}
-
-static struct notifier_block sound_notifier=
-{
-	my_notifier_call,
-	(void *)0,
-	0
-};
-
-#endif /* _SOUNDMODULE_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)