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 <pavan.kondeti@oss.qualcomm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Cc: Hanjun Guo <guohanjun@huawei.com> Cc: Sudeep Holla <sudeep.holla@arm.com> Cc: Rafael J. Wysocki <rafael@kernel.org> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Mark Rutland <mark.rutland@arm.com> Acked-by: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Will Deacon <will@kernel.org>
1 parent 9238fa3 commit 7c16c02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)