@@ -273,20 +273,22 @@ static const struct file_operations ivpu_reset_engine_fops = {
void ivpu_debugfs_init(struct ivpu_device *vdev)
{
+ struct dentry *debugfs_root = vdev->drm.debugfs_root;
+
drm_debugfs_add_files(&vdev->drm, vdev_debugfs_list, ARRAY_SIZE(vdev_debugfs_list));
- debugfs_create_file("force_recovery", 0200, vdev->drm.debugfs_root, vdev,
+ debugfs_create_file("force_recovery", 0200, debugfs_root, vdev,
&ivpu_force_recovery_fops);
- debugfs_create_file("fw_log", 0644, vdev->drm.debugfs_root, vdev,
+ debugfs_create_file("fw_log", 0644, debugfs_root, vdev,
&fw_log_fops);
- debugfs_create_file("fw_trace_destination_mask", 0200, vdev->drm.debugfs_root, vdev,
+ debugfs_create_file("fw_trace_destination_mask", 0200, debugfs_root, vdev,
&fw_trace_destination_mask_fops);
- debugfs_create_file("fw_trace_hw_comp_mask", 0200, vdev->drm.debugfs_root, vdev,
+ debugfs_create_file("fw_trace_hw_comp_mask", 0200, debugfs_root, vdev,
&fw_trace_hw_comp_mask_fops);
- debugfs_create_file("fw_trace_level", 0200, vdev->drm.debugfs_root, vdev,
+ debugfs_create_file("fw_trace_level", 0200, debugfs_root, vdev,
&fw_trace_level_fops);
- debugfs_create_file("reset_engine", 0200, vdev->drm.debugfs_root, vdev,
+ debugfs_create_file("reset_engine", 0200, debugfs_root, vdev,
&ivpu_reset_engine_fops);
}
Use local variable for debugfs root, just to make further changes easier. Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> --- I'll squash that patch into patch 1 drivers/accel/ivpu/ivpu_debugfs.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)