Skip to content

Commit 7c16c02

Browse files
Marc Zyngierwilldeacon
authored andcommitted
ACPI: GTDT: Correctly number platform devices for MMIO timers
Use the actual timer counter instead of the watchdog counter. Fixes: 5669d92 ("ACPI: GTDT: Generate platform devices for MMIO timers") Reported-by: Pavan Kondeti <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Cc: Hanjun Guo <[email protected]> Cc: Sudeep Holla <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Mark Rutland <[email protected]> Acked-by: Hanjun Guo <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 9238fa3 commit 7c16c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/arm64/gtdt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,10 @@ static int __init gtdt_platform_timer_init(void)
430430
continue;
431431

432432
pdev = platform_device_register_data(NULL, "gtdt-arm-mmio-timer",
433-
gwdt_count, &atm,
433+
mmio_timer_count, &atm,
434434
sizeof(atm));
435435
if (IS_ERR(pdev)) {
436-
pr_err("Can't register timer %d\n", gwdt_count);
436+
pr_err("Can't register timer %d\n", mmio_timer_count);
437437
continue;
438438
}
439439

0 commit comments

Comments
 (0)