diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2009-11-11 12:19:16 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-11-30 19:24:23 -0500 |
commit | 33db679b4ee94e5a55abb439a87905d76739095a (patch) | |
tree | 69f27d52cff7b3992da202179f709663500d4617 | |
parent | 29874f44fbcbc24b231b42c9956f8f9de9407231 (diff) |
drm/i915: Unregister i915_wedged debugfs entry using the right key
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>
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 9087c4cfb6ba..d7aada51a3be 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -549,13 +549,10 @@ int i915_debugfs_init(struct drm_minor *minor) | |||
549 | 549 | ||
550 | void i915_debugfs_cleanup(struct drm_minor *minor) | 550 | void i915_debugfs_cleanup(struct drm_minor *minor) |
551 | { | 551 | { |
552 | const void *key; | ||
553 | |||
554 | drm_debugfs_remove_files(i915_debugfs_list, | 552 | drm_debugfs_remove_files(i915_debugfs_list, |
555 | I915_DEBUGFS_ENTRIES, minor); | 553 | I915_DEBUGFS_ENTRIES, minor); |
556 | 554 | drm_debugfs_remove_files((struct drm_info_list *) &i915_wedged_fops, | |
557 | key = &i915_wedged_fops; | 555 | 1, minor); |
558 | drm_debugfs_remove_files((struct drm_info_list *) &key, 1, minor); | ||
559 | } | 556 | } |
560 | 557 | ||
561 | #endif /* CONFIG_DEBUG_FS */ | 558 | #endif /* CONFIG_DEBUG_FS */ |