summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/scheduler/tests/mock_scheduler.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/scheduler/tests/mock_scheduler.c')
-rw-r--r--drivers/gpu/drm/scheduler/tests/mock_scheduler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/scheduler/tests/mock_scheduler.c b/drivers/gpu/drm/scheduler/tests/mock_scheduler.c
index 61efc96e6e41..f999c8859cf7 100644
--- a/drivers/gpu/drm/scheduler/tests/mock_scheduler.c
+++ b/drivers/gpu/drm/scheduler/tests/mock_scheduler.c
@@ -125,8 +125,8 @@ drm_mock_sched_job_new(struct kunit *test,
init_completion(&job->done);
spin_lock_init(&job->lock);
INIT_LIST_HEAD(&job->link);
- hrtimer_init(&job->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
- job->timer.function = drm_mock_sched_job_signal_timer;
+ hrtimer_setup(&job->timer, drm_mock_sched_job_signal_timer,
+ CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
return job;
}