mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] set serial_driver.name_base
@ 2001-07-12  9:54 Paul Mackerras
  0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2001-07-12  9:54 UTC (permalink / raw)
  To: torvalds, tytso; +Cc: linux-kernel

Linus, Ted,

The following patch sets serial_driver.name_base so that devfs gives
us the correct names for the serial ports when we have a non-zero
SERIAL_DEV_OFFSET (as on powermacs).  It will be completely benign in
other situations since SERIAL_DEV_OFFSET is 0 there.

Thanks,
Paul.

diff -urN linux/drivers/char/serial.c linuxppc_2_4/drivers/char/serial.c
--- linux/drivers/char/serial.c	Thu Jul 12 16:54:25 2001
+++ linuxppc_2_4/drivers/char/serial.c	Tue Jul 10 14:01:04 2001
@@ -5352,6 +5352,7 @@
 #endif
 	serial_driver.major = TTY_MAJOR;
 	serial_driver.minor_start = 64 + SERIAL_DEV_OFFSET;
+	serial_driver.name_base = SERIAL_DEV_OFFSET;
 	serial_driver.num = NR_PORTS;
 	serial_driver.type = TTY_DRIVER_TYPE_SERIAL;
 	serial_driver.subtype = SERIAL_TYPE_NORMAL;

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

only message in thread, other threads:[~2001-07-12  9:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-12  9:54 [PATCH] set serial_driver.name_base Paul Mackerras

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®