diff options
Diffstat (limited to 'drivers/misc/vmw_balloon.c')
| -rw-r--r-- | drivers/misc/vmw_balloon.c | 11 | 
1 files changed, 3 insertions, 8 deletions
| diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index b837e7eba5f7..f1d8ba6d4857 100644 --- a/drivers/misc/vmw_balloon.c +++ b/drivers/misc/vmw_balloon.c @@ -346,11 +346,6 @@ struct vmballoon {  	/* statistics */  	struct vmballoon_stats *stats; -#ifdef CONFIG_DEBUG_FS -	/* debugfs file exporting statistics */ -	struct dentry *dbg_entry; -#endif -  	/**  	 * @b_dev_info: balloon device information descriptor.  	 */ @@ -1709,14 +1704,14 @@ DEFINE_SHOW_ATTRIBUTE(vmballoon_debug);  static void __init vmballoon_debugfs_init(struct vmballoon *b)  { -	b->dbg_entry = debugfs_create_file("vmmemctl", S_IRUGO, NULL, b, -					   &vmballoon_debug_fops); +	debugfs_create_file("vmmemctl", S_IRUGO, NULL, b, +			    &vmballoon_debug_fops);  }  static void __exit vmballoon_debugfs_exit(struct vmballoon *b)  {  	static_key_disable(&balloon_stat_enabled.key); -	debugfs_remove(b->dbg_entry); +	debugfs_remove(debugfs_lookup("vmmemctl", NULL));  	kfree(b->stats);  	b->stats = NULL;  } | 
