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