summaryrefslogtreecommitdiff
path: root/kernel/printk/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/printk/index.c')
-rw-r--r--kernel/printk/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/index.c b/kernel/printk/index.c
index c85be186a783..a6b27526baaf 100644
--- a/kernel/printk/index.c
+++ b/kernel/printk/index.c
@@ -145,7 +145,7 @@ static void pi_create_file(struct module *mod)
#ifdef CONFIG_MODULES
static void pi_remove_file(struct module *mod)
{
- debugfs_remove(debugfs_lookup(pi_get_module_name(mod), dfs_index));
+ debugfs_lookup_and_remove(pi_get_module_name(mod), dfs_index);
}
static int pi_module_notify(struct notifier_block *nb, unsigned long op,