Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 4891f01527bb ("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

authored by

Johan Hovold and committed by
Daniel Lezcano
6aa10f0e b452d2c9

+2
+2
drivers/clocksource/arm_arch_timer_mmio.c
··· 426 426 .driver = { 427 427 .name = "arch-timer-mmio", 428 428 .of_match_table = arch_timer_mmio_of_table, 429 + .suppress_bind_attrs = true, 429 430 }, 430 431 .probe = arch_timer_mmio_probe, 431 432 }; ··· 435 434 static struct platform_driver arch_timer_mmio_acpi_drv = { 436 435 .driver = { 437 436 .name = "gtdt-arm-mmio-timer", 437 + .suppress_bind_attrs = true, 438 438 }, 439 439 .probe = arch_timer_mmio_probe, 440 440 };