SOURCES: kernel-sound-cmaudio-2.6.21.patch (NEW) - patch for kerne...

zbyniu zbyniu at pld-linux.org
Sat Jan 26 20:49:26 CET 2008


Author: zbyniu                       Date: Sat Jan 26 19:49:26 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- patch for kernels > 2.6.21

---- Files affected:
SOURCES:
   kernel-sound-cmaudio-2.6.21.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/kernel-sound-cmaudio-2.6.21.patch
diff -u /dev/null SOURCES/kernel-sound-cmaudio-2.6.21.patch:1.1
--- /dev/null	Sat Jan 26 20:49:26 2008
+++ SOURCES/kernel-sound-cmaudio-2.6.21.patch	Sat Jan 26 20:49:20 2008
@@ -0,0 +1,14 @@
+--- cmaudio/main.c	2004-10-11 17:16:39.000000000 +0200
++++ cmaudio/main.c	2008-01-26 20:34:43.530864750 +0100
+@@ -2029,7 +2029,11 @@ static struct pci_driver cmaudio_driver 
+ 
+ static int __init init_cmaudio(void)
+ {
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
++	return pci_register_driver(&cmaudio_driver);
++#else
+ 	return pci_module_init(&cmaudio_driver);
++#endif
+ }
+ 
+ static void __exit cmedia_cleanup_module (void)
================================================================


More information about the pld-cvs-commit mailing list