1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-27 14:23:20 +02:00
openwrt-xburst/package/nozomi/patches/001-devfs.patch
juhosg b7895ada80 package/nozomi: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20472 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 14:29:10 +00:00

20 lines
697 B
Diff

--- a/nozomi.c
+++ b/nozomi.c
@@ -2093,11 +2093,15 @@ static int ntty_tty_init(dc_t *dc) {
td->magic = TTY_DRIVER_MAGIC;
td->driver_name = NOZOMI_NAME_TTY;
+#ifndef CONFIG_DEVFS_FS
td->name = "noz";
+#else
+ td->name = "noz%d";
+#endif
td->major = NTTY_TTY_MAJOR,
td->type = TTY_DRIVER_TYPE_SERIAL,
td->subtype = SERIAL_TYPE_NORMAL,
- td->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS,
+ td->flags = TTY_DRIVER_REAL_RAW,
td->init_termios = tty_std_termios;
td->init_termios.c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL;