mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] small patch to fix compilation error in drivers/char/rocket.c
@ 2002-03-09 11:09 William Stinson
  0 siblings, 0 replies; only message in thread
From: William Stinson @ 2002-03-09 11:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: ak

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


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-09 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-09 11:09 [PATCH] small patch to fix compilation error in drivers/char/rocket.c William Stinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®