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