patch-2.4.19 linux-2.4.19/drivers/media/video/tvmixer.c
Next file: linux-2.4.19/drivers/media/video/videodev.c
Previous file: linux-2.4.19/drivers/media/video/tvaudio.h
Back to the patch index
Back to the overall index
-  Lines: 38
-  Date:
Fri Aug  2 17:39:44 2002
-  Orig file: 
linux-2.4.18/drivers/media/video/tvmixer.c
-  Orig date: 
Wed Oct 17 14:19:20 2001
diff -urN linux-2.4.18/drivers/media/video/tvmixer.c linux-2.4.19/drivers/media/video/tvmixer.c
@@ -8,8 +8,9 @@
 #include <linux/slab.h>
 #include <linux/i2c.h>
 #include <linux/videodev.h>
-#include <asm/semaphore.h>
 #include <linux/init.h>
+#include <linux/kdev_t.h>
+#include <asm/semaphore.h>
 
 #include <linux/sound.h>
 #include <linux/soundcard.h>
@@ -177,7 +178,7 @@
 
 static int tvmixer_open(struct inode *inode, struct file *file)
 {
-        int i, minor = MINOR(inode->i_rdev);
+        int i, minor = minor(inode->i_rdev);
         struct TVMIXER *mix = NULL;
 	struct i2c_client *client = NULL;
 
@@ -320,7 +321,7 @@
 
 /* ----------------------------------------------------------------------- */
 
-int tvmixer_init_module(void)
+static int tvmixer_init_module(void)
 {
 	int i;
 	
@@ -330,7 +331,7 @@
 	return 0;
 }
 
-void tvmixer_cleanup_module(void)
+static void tvmixer_cleanup_module(void)
 {
 	int i;
 	
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)