diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 2cf2ea6b77a1ac307c22d35aed28b12d7a0da75f..77fcd069c64ae19d085c7fbafe95c9cf7303bd78 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -272,7 +272,8 @@ static int clk_debug_create_one(struct clk *clk, struct dentry *pdentry) goto out; err_out: - debugfs_remove(clk->dentry); + debugfs_remove_recursive(clk->dentry); + clk->dentry = NULL; out: return ret; }