.release = tegra_sor_crc_release,
};
-static int tegra_sor_debugfs_init(struct tegra_sor *sor, struct dentry *root)
+static int tegra_sor_debugfs_init(struct tegra_sor *sor,
+ struct drm_minor *minor)
{
struct dentry *entry;
int err = 0;
- sor->debugfs = debugfs_create_dir("sor", root);
+ sor->debugfs = debugfs_create_dir("sor", minor->debugfs_root);
if (!sor->debugfs)
return -ENOMEM;
if (!entry) {
dev_err(sor->dev,
"cannot create /sys/kernel/debug/dri/%s/sor/crc\n",
- root->d_name.name);
+ minor->debugfs_root->d_name.name);
err = -ENOMEM;
goto remove;
}
}
if (IS_ENABLED(CONFIG_DEBUG_FS)) {
- struct dentry *root = drm->primary->debugfs_root;
-
- err = tegra_sor_debugfs_init(sor, root);
+ err = tegra_sor_debugfs_init(sor, drm->primary);
if (err < 0)
dev_err(sor->dev, "debugfs setup failed: %d\n", err);
}