Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8eb57294 authored by Ben Widawsky's avatar Ben Widawsky Committed by Keith Packard
Browse files

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: default avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 704df8d6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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[] = {