diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2011-05-11 15:10:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-13 13:38:35 -0700 |
commit | 8eb572942ca02890f590d9251233038e27dd3842 (patch) | |
tree | 62ccf16cc57695b011ebfebbce84e55e7c92b91e /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | 704df8d694fe44d89504e9804403e384a6710ece (diff) | |
download | lwn-8eb572942ca02890f590d9251233038e27dd3842.tar.gz lwn-8eb572942ca02890f590d9251233038e27dd3842.zip |
drm/i915: forcewake debugfs fix
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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index c0ce5e44ac3a..183eaac8980a 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -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[] = { |