Skip to content

Commit

Permalink
drm/i915: Unregister i915_wedged debugfs entry using the right key
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kristian Høgsberg authored and Eric Anholt committed Dec 1, 2009
1 parent 29874f4 commit 33db679
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 33db679

Please sign in to comment.