[MPlayer-matrox] r267 - mga_vid/trunk/mga_vid.c

attila subversion at mplayerhq.hu
Sat Aug 2 17:10:12 CEST 2008


Author: attila
Date: Sat Aug  2 17:10:12 2008
New Revision: 267

Log:
make mga_vid compile on 2.6.26
patch by heldore (at) o2.pl


Modified:
   mga_vid/trunk/mga_vid.c

Modified: mga_vid/trunk/mga_vid.c
==============================================================================
--- mga_vid/trunk/mga_vid.c	(original)
+++ mga_vid/trunk/mga_vid.c	Sat Aug  2 17:10:12 2008
@@ -1134,7 +1134,7 @@ static int mga_vid_initialize(void)
 
 				mga_vid_class = class_create(THIS_MODULE, "mga_vid");
 				for (i = 0; i < mga_cards_num; i++) {
-					class_device_create(mga_vid_class, NULL, MKDEV(mga_vid_major, i), NULL, "mga_vid%d", i);
+					device_create(mga_vid_class, NULL, MKDEV(mga_vid_major, i), "mga_vid%d", i);
 				}
 
 				printk(KERN_INFO "mga_vid: using major: %d (assigned or default!)\n", major);
@@ -1183,7 +1183,7 @@ static void mga_cleanup_module(void)
 	}
 
 	for (i = 0; i < mga_cards_num; i++) {
-		class_device_destroy(mga_vid_class, MKDEV(mga_vid_major, i));
+		device_destroy(mga_vid_class, MKDEV(mga_vid_major, i));
 	}
 	class_destroy(mga_vid_class);
 



More information about the MPlayer-matrox mailing list