Update of /cvsroot/alsa/alsa-driver/include
In directory sc8-pr-cvs1:/tmp/cvs-serv15067

Modified Files:
        adriver.h 
Log Message:
added the wrappers for try_module_get() and module_put().



Index: adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- adriver.h   11 Dec 2002 10:36:22 -0000      1.25
+++ adriver.h   19 Dec 2002 15:55:41 -0000      1.26
@@ -290,6 +290,17 @@
 #define schedule_work(w) snd_compat_schedule_work(w)
 #endif /* 2.5.45 */
 
+/* 2.5 new modules */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
+#define try_module_get(x) try_inc_mod_count(x)
+static inline void module_put(struct module *module)
+{
+       if (module)
+               __MOD_DEC_USE_COUNT(module);
+}
+#endif /* 2.5.0 */
+
+
 #include "amagic.h"
 
 #endif /* __SOUND_LOCAL_DRIVER_H */



-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to