Skip to content

Commit

Permalink
drm/i915: forcewake debugfs fix
Browse files Browse the repository at this point in the history
Forcewake needs to register itself with drm to use the remove function.

The file also should be read only.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
Ben Widawsky authored and Keith Packard committed May 13, 2011
1 parent 704df8d commit 8eb5729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,13 +1383,13 @@ static int i915_forcewake_create(struct dentry *root, struct drm_minor *minor)
struct dentry *ent;

ent = debugfs_create_file("i915_forcewake_user",
S_IRWXU,
S_IRUSR,
root, dev,
&i915_forcewake_fops);
if (IS_ERR(ent))
return PTR_ERR(ent);

return 0;
return drm_add_fake_info_node(minor, ent, &i915_forcewake_fops);
}

static struct drm_info_list i915_debugfs_list[] = {
Expand Down

0 comments on commit 8eb5729

Please sign in to comment.