Skip to contentSkip to conversation

Fix zs.c serial callout driver

PATCH New Thiemo Seufer 1 participant 1 message Jul 5, 2002 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix zs.c serial callout driver

[please CC me for replies, I'm not on this list]

Hello,

this should fix the serial callout driver for the non-devfs case. I haven't tested it because I have no such hardware.

Thiemo

drivers/sbus/char/zs.c +4 -0
diff -BurpNX /bigdisk/src/dontdiff source-linux-orig/drivers/sbus/char/zs.c source-linux/drivers/sbus/char/zs.c
@@ -2406,7 +2414,11 @@ int __init zs_init(void)
 	 * major number and the subtype code.
 	 */
 	callout_driver = serial_driver;
+#ifdef CONFIG_DEVFS_FS
 	callout_driver.name = "cua/%d";
+#else
+	callout_driver.name = "cua";
+#endif
 	callout_driver.major = TTYAUX_MAJOR;
 	callout_driver.subtype = SERIAL_TYPE_CALLOUT;