aboutsummaryrefslogtreecommitdiffstats
path: root/package/nozomi/patches/001-devfs.patch
blob: 08cda0b5797fa72c0594b962861d483d371c9500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- 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;