drm/i915: Unregister i915_wedged debugfs entry using the right key
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 11 Nov 2009 17:19:16 +0000 (12:19 -0500)
committerEric Anholt <eric@anholt.net>
Tue, 1 Dec 2009 00:24:23 +0000 (16:24 -0800)
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_debugfs.c

index 9087c4cfb6ba3443ad00767112c35f92c0cf789d..d7aada51a3be0572f6f93a6efd03fa18c9405128 100644 (file)
@@ -549,13 +549,10 @@ int i915_debugfs_init(struct drm_minor *minor)
 
 void i915_debugfs_cleanup(struct drm_minor *minor)
 {
-       const void *key;
-
        drm_debugfs_remove_files(i915_debugfs_list,
                                 I915_DEBUGFS_ENTRIES, minor);
-
-       key = &i915_wedged_fops;
-       drm_debugfs_remove_files((struct drm_info_list *) &key, 1, minor);
+       drm_debugfs_remove_files((struct drm_info_list *) &i915_wedged_fops,
+                                1, minor);
 }
 
 #endif /* CONFIG_DEBUG_FS */