Skip to contentSkip to conversation

Patch: linux-2.5.2-pre8/drivers/media/video/tvmixer.c kdev_t compilation fix

PATCH Adam J. Richter 1 participant 1 message Jan 5, 2002 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw
	linux-2.5.2-pre8/drivers/media/video/tvmixer.c used

MINOR where it should have used minor. Here is the fix (untested aside from seeing that it compiles).

This is the only compilation fix for the drivers/media
subtree. That is why I am submitting it by itself.

Signature · 4 lines
Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."
drivers/media/video/tvmixer.c +1 -1
@@ -177,7 +177,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;