upgrade avr32 to 2.6.27
[openwrt.git] / target / linux / etrax / patches / 300-sysfs.patch
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>
8
9 #include <asm/io.h>
10 #include <asm/irq.h>
11 @@ -4384,6 +4385,7 @@ static const struct tty_operations rs_op
12 .tiocmset = rs_tiocmset
13 };
14
15 +static struct class *rs_class;
16 static int __init
17 rs_init(void)
18 {
19 @@ -4518,6 +4520,24 @@ rs_init(void)
20 #endif
21 #endif /* CONFIG_SVINTO_SIM */
22
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");
27 +#endif
28 +#ifdef CONFIG_ETRAX_SERIAL_PORT1
29 + class_device_create(rs_class, NULL,
30 + MKDEV(TTY_MAJOR, 65), NULL, "ttyS1");
31 +#endif
32 +#ifdef CONFIG_ETRAX_SERIAL_PORT2
33 + class_device_create(rs_class, NULL,
34 + MKDEV(TTY_MAJOR, 66), NULL, "ttyS2");
35 +#endif
36 +#ifdef CONFIG_ETRAX_SERIAL_PORT3
37 + class_device_create(rs_class, NULL,
38 + MKDEV(TTY_MAJOR, 67), NULL, "ttyS3");
39 +#endif
40 +
41 return 0;
42 }
43
This page took 0.045166 seconds and 5 git commands to generate.