summaryrefslogtreecommitdiff
path: root/package/nozomi/patches/001-devfs.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-03 23:55:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-03 23:55:49 +0000
commit68334478aab160e73857497ec57779a318658cb8 (patch)
treede63c5dfddfa9851fbca2f26ab7a525257ef83e3 /package/nozomi/patches/001-devfs.patch
parentb7bede71f60fc9e9308b5deaca083245955ed0c7 (diff)
downloadmtk-20170518-68334478aab160e73857497ec57779a318658cb8.zip
mtk-20170518-68334478aab160e73857497ec57779a318658cb8.tar.gz
mtk-20170518-68334478aab160e73857497ec57779a318658cb8.tar.bz2
add nozomi driver
SVN-Revision: 5431
Diffstat (limited to 'package/nozomi/patches/001-devfs.patch')
-rw-r--r--package/nozomi/patches/001-devfs.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/nozomi/patches/001-devfs.patch b/package/nozomi/patches/001-devfs.patch
new file mode 100644
index 0000000..a532e57
--- /dev/null
+++ b/package/nozomi/patches/001-devfs.patch
@@ -0,0 +1,19 @@
+--- kmod-nozomi.orig/nozomi.c 2006-02-09 18:07:27.000000000 +0100
++++ kmod-nozomi/nozomi.c 2006-09-06 10:55:48.000000000 +0200
+@@ -2093,11 +2093,15 @@
+
+ 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;
+