1 Index: linux-2.6.25.4/drivers/serial/crisv10.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/serial/crisv10.c
4 +++ linux-2.6.25.4/drivers/serial/crisv10.c
5 @@ -27,6 +27,7 @@ static char *serial_version = "$Revision
6 #include <linux/kernel.h>
7 #include <linux/mutex.h>
8 #include <linux/bitops.h>
9 +#include <linux/device.h>
13 @@ -4384,6 +4385,7 @@ static const struct tty_operations rs_op
14 .tiocmset = rs_tiocmset
17 +static struct class *rs_class;
21 @@ -4518,6 +4520,24 @@ rs_init(void)
23 #endif /* CONFIG_SVINTO_SIM */
25 + rs_class = class_create(THIS_MODULE, "rs_tty");
26 +#ifdef CONFIG_ETRAX_SERIAL_PORT0
27 + class_device_create(rs_class, NULL,
28 + MKDEV(TTY_MAJOR, 64), NULL, "ttyS0");
30 +#ifdef CONFIG_ETRAX_SERIAL_PORT1
31 + class_device_create(rs_class, NULL,
32 + MKDEV(TTY_MAJOR, 65), NULL, "ttyS1");
34 +#ifdef CONFIG_ETRAX_SERIAL_PORT2
35 + class_device_create(rs_class, NULL,
36 + MKDEV(TTY_MAJOR, 66), NULL, "ttyS2");
38 +#ifdef CONFIG_ETRAX_SERIAL_PORT3
39 + class_device_create(rs_class, NULL,
40 + MKDEV(TTY_MAJOR, 67), NULL, "ttyS3");