Skip to content

Commit f97e1d7

Browse files
covanamKAGA-KOKO
authored andcommitted
drm/i915/uncore: Switch to use hrtimer_setup()
hrtimer_setup() takes the callback function pointer as argument and initializes the timer completely. Replace hrtimer_init() and the open coded initialization of hrtimer::function with the new setup mechanism. Patch was created by using Coccinelle. Signed-off-by: Nam Cao <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Zack Rusin <[email protected]> Acked-by: Jani Nikula <[email protected]> Link: https://lore.kernel.org/all/1d0ad9ab31040d9c3478b77626cdb0a04c0a7bad.1738746904.git.namcao@linutronix.de
1 parent 82ad584 commit f97e1d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/i915/intel_uncore.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,8 +2103,7 @@ static int __fw_domain_init(struct intel_uncore *uncore,
21032103

21042104
d->mask = BIT(domain_id);
21052105

2106-
hrtimer_init(&d->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
2107-
d->timer.function = intel_uncore_fw_release_timer;
2106+
hrtimer_setup(&d->timer, intel_uncore_fw_release_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
21082107

21092108
uncore->fw_domains |= BIT(domain_id);
21102109

0 commit comments

Comments
 (0)