summaryrefslogtreecommitdiffstats
path: root/package/nozomi/patches/001-devfs.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-03 23:55:49 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-11-03 23:55:49 +0000
commit106223e27e44d85b28c5a24cab8bddd43a3dd83c (patch)
treeb323c9ea2d0f343c3d02b8bbf7d118ae22d58e04 /package/nozomi/patches/001-devfs.patch
parente94772e7a30ee6d27ec99a9bc6b65161d6e32fb3 (diff)
add nozomi driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5431 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 000000000..a532e579f
--- /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;
+