summaryrefslogtreecommitdiff
path: root/drivers/pps/generators/pps_gen_tio.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2025-04-04 19:31:15 +0200
committerIngo Molnar <mingo@kernel.org>2025-04-05 10:30:17 +0200
commit48ad7bbfd53af0d3fe6490a4dd30c169db6f12aa (patch)
tree4e96b28692afc86808e24dd9d6d3131844fff988 /drivers/pps/generators/pps_gen_tio.c
parent8fa7292fee5c5240402371ea89ab285ec856c916 (diff)
downloadlinux-48ad7bbfd53af0d3fe6490a4dd30c169db6f12aa.tar.gz
linux-48ad7bbfd53af0d3fe6490a4dd30c169db6f12aa.tar.bz2
linux-48ad7bbfd53af0d3fe6490a4dd30c169db6f12aa.zip
treewide: Convert new and leftover hrtimer_init() users
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. Coccinelle scripted cleanup. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/pps/generators/pps_gen_tio.c')
-rw-r--r--drivers/pps/generators/pps_gen_tio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pps/generators/pps_gen_tio.c b/drivers/pps/generators/pps_gen_tio.c
index 6c46b46c66cd..1d5ffe055463 100644
--- a/drivers/pps/generators/pps_gen_tio.c
+++ b/drivers/pps/generators/pps_gen_tio.c
@@ -227,8 +227,8 @@ static int pps_gen_tio_probe(struct platform_device *pdev)
return PTR_ERR(tio->base);
pps_tio_disable(tio);
- hrtimer_init(&tio->timer, CLOCK_REALTIME, HRTIMER_MODE_ABS);
- tio->timer.function = hrtimer_callback;
+ hrtimer_setup(&tio->timer, hrtimer_callback, CLOCK_REALTIME,
+ HRTIMER_MODE_ABS);
spin_lock_init(&tio->lock);
platform_set_drvdata(pdev, &tio);