1 --- a/drivers/serial/crisv10.c
2 +++ b/drivers/serial/crisv10.c
3 @@ -27,6 +27,7 @@ static char *serial_version = "$Revision
4 #include <linux/kernel.h>
5 #include <linux/mutex.h>
6 #include <linux/bitops.h>
7 +#include <linux/device.h>
11 @@ -4393,6 +4394,7 @@ static const struct tty_operations rs_op
12 .tiocmset = rs_tiocmset
15 +static struct class *rs_class;
19 @@ -4527,6 +4529,24 @@ rs_init(void)
21 #endif /* CONFIG_SVINTO_SIM */
23 + rs_class = class_create(THIS_MODULE, "rs_tty");
24 +#ifdef CONFIG_ETRAX_SERIAL_PORT0
25 + device_create(rs_class, NULL,
26 + MKDEV(TTY_MAJOR, 64), NULL, "ttyS0");
28 +#ifdef CONFIG_ETRAX_SERIAL_PORT1
29 + device_create(rs_class, NULL,
30 + MKDEV(TTY_MAJOR, 65), NULL, "ttyS1");
32 +#ifdef CONFIG_ETRAX_SERIAL_PORT2
33 + device_create(rs_class, NULL,
34 + MKDEV(TTY_MAJOR, 66), NULL, "ttyS2");
36 +#ifdef CONFIG_ETRAX_SERIAL_PORT3
37 + device_create(rs_class, NULL,
38 + MKDEV(TTY_MAJOR, 67), NULL, "ttyS3");