patch-2.4.6 linux/drivers/char/sh-sci.c

Next file: linux/drivers/char/sh-sci.h
Previous file: linux/drivers/char/sbc60xxwdt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/drivers/char/sh-sci.c linux/drivers/char/sh-sci.c
@@ -1035,7 +1035,11 @@
 	memset(&sci_driver, 0, sizeof(sci_driver));
 	sci_driver.magic = TTY_DRIVER_MAGIC;
 	sci_driver.driver_name = "sci";
+#ifdef CONFIG_DEVFS_FS
+	sci_driver.name = "ttsc/%d";
+#else
 	sci_driver.name = "ttySC";
+#endif
 	sci_driver.major = SCI_MAJOR;
 	sci_driver.minor_start = SCI_MINOR_START;
 	sci_driver.num = SCI_NPORTS;
@@ -1070,7 +1074,11 @@
 #endif
 
 	sci_callout_driver = sci_driver;
+#ifdef CONFIG_DEVFS_FS
+	sci_callout_driver.name = "cusc/%d";
+#else
 	sci_callout_driver.name = "cusc";
+#endif
 	sci_callout_driver.major = SCI_MAJOR+1;
 	sci_callout_driver.subtype = SERIAL_TYPE_CALLOUT;
 	sci_callout_driver.read_proc = NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)