Skip to content

Commit 6aa10f0

Browse files
jhovolddlezcano
authored andcommitted
clocksource/drivers/arm_arch_timer_mmio: Prevent driver unbind
Clockevents cannot be deregistered so suppress the bind attributes to prevent the driver from being unbound and releasing the underlying resources after registration. Fixes: 4891f01 ("clocksource/drivers/arm_arch_timer: Add standalone MMIO driver") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://patch.msgid.link/20251111153226.579-2-johan@kernel.org
1 parent b452d2c commit 6aa10f0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/clocksource/arm_arch_timer_mmio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ static struct platform_driver arch_timer_mmio_drv = {
426426
.driver = {
427427
.name = "arch-timer-mmio",
428428
.of_match_table = arch_timer_mmio_of_table,
429+
.suppress_bind_attrs = true,
429430
},
430431
.probe = arch_timer_mmio_probe,
431432
};
@@ -434,6 +435,7 @@ builtin_platform_driver(arch_timer_mmio_drv);
434435
static struct platform_driver arch_timer_mmio_acpi_drv = {
435436
.driver = {
436437
.name = "gtdt-arm-mmio-timer",
438+
.suppress_bind_attrs = true,
437439
},
438440
.probe = arch_timer_mmio_probe,
439441
};

0 commit comments

Comments
 (0)