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

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

Post by William Stinso » Sun, 10 Mar 2002 19:20:07



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


--- linux-2.5.6/drivers/char/rocket.c   Sat Mar  9 01:06:58 2002

        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;
        }

        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

https://lists.sourceforge.net/lists/listinfo/kernel-janitor-discuss

-------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/