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

William Stinson (wstinson@infonie.fr)
Sat, 9 Mar 2002 11:09:33 +0000


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 (wstinson@infonie.fr)

--- linux-2.5.6/drivers/char/rocket.c Sat Mar 9 01:06:58 2002
+++ linux-local/drivers/char/rocket.c Sat Mar 9 01:09:20 2002
@@ -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
Kernel-janitor-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kernel-janitor-discuss

-------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/