diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c index 2da657848cfc..d0cf1c50bb6c 100644 --- a/fs/proc/proc_tty.c +++ b/fs/proc/proc_tty.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/tty.h> | 15 | #include <linux/tty.h> |
16 | #include <linux/seq_file.h> | 16 | #include <linux/seq_file.h> |
17 | #include <linux/bitops.h> | 17 | #include <linux/bitops.h> |
18 | #include "internal.h" | ||
18 | 19 | ||
19 | /* | 20 | /* |
20 | * The /proc/tty directory inodes... | 21 | * The /proc/tty directory inodes... |
@@ -165,7 +166,7 @@ void proc_tty_unregister_driver(struct tty_driver *driver) | |||
165 | if (!ent) | 166 | if (!ent) |
166 | return; | 167 | return; |
167 | 168 | ||
168 | remove_proc_entry(driver->driver_name, proc_tty_driver); | 169 | remove_proc_entry(ent->name, proc_tty_driver); |
169 | 170 | ||
170 | driver->proc_entry = NULL; | 171 | driver->proc_entry = NULL; |
171 | } | 172 | } |