1 --- a/drivers/serial/crisv10.c
2 +++ b/drivers/serial/crisv10.c
4 #include <linux/kernel.h>
5 #include <linux/mutex.h>
6 #include <linux/bitops.h>
7 +#include <linux/device.h>
12 .tiocmset = rs_tiocmset
15 +static struct class *rs_class;
19 @@ -4518,6 +4520,24 @@
21 #endif /* CONFIG_SVINTO_SIM */
23 + rs_class = class_create(THIS_MODULE, "rs_tty");
24 +#ifdef CONFIG_ETRAX_SERIAL_PORT0
25 + class_device_create(rs_class, NULL,
26 + MKDEV(TTY_MAJOR, 64), NULL, "ttyS0");
28 +#ifdef CONFIG_ETRAX_SERIAL_PORT1
29 + class_device_create(rs_class, NULL,
30 + MKDEV(TTY_MAJOR, 65), NULL, "ttyS1");
32 +#ifdef CONFIG_ETRAX_SERIAL_PORT2
33 + class_device_create(rs_class, NULL,
34 + MKDEV(TTY_MAJOR, 66), NULL, "ttyS2");
36 +#ifdef CONFIG_ETRAX_SERIAL_PORT3
37 + class_device_create(rs_class, NULL,
38 + MKDEV(TTY_MAJOR, 67), NULL, "ttyS3");