Skip to contentSkip to conversation

small patch to fix compilation error in drivers/char/rocket.c

PATCH New William Stinson 1 participant 1 message Mar 9, 2002 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 small patch to fix compilation error in drivers/char/rocket.c

Hi

this is a (trivial) patch for compilation error in the rocketport serial driver.

Patch for 2.5.6. Please CC' my for any answers/comments.

I also put this patch at http://www.chez.com/wstinson/linux/kernel/patch-rocket

William Stinson ([email protected])

drivers/char/rocket.c +2 -2
@@ -227,7 +227,7 @@
 	if (!info)
 		return 1;
 	if (info->magic != RPORT_MAGIC) {
-		printk(badmagic, MAJOR(device), MINOR(device), routine);
+		printk(badmagic, major(device), minor(device), routine);
 		return 1;
 	}
 #endif
@@ -896,7 +896,7 @@
 	CHANNEL_t	*cp;
 	unsigned long page;
 	
-	line = MINOR(tty->device) - tty->driver.minor_start;
+	line = minor(tty->device) - tty->driver.minor_start;
 	if ((line < 0) || (line >= MAX_RP_PORTS))
 		return -ENODEV;
 	if (!tmp_buf) {

_______________________________________________
Kernel-janitor-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kernel-janitor-discuss

-------------------------------------------------------