blob: a59193eef7ae0569220e565f350680eb98639bbb [file] [log] [blame]
From 931f113342b5d887925e77e5f5f9df2d1e719645 Mon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <>
Date: Wed, 16 Oct 2019 16:47:45 +0200
Subject: [PATCH] clocksource/drivers/timer-of: Use unique device name instead
of timer
commit 4411464d6f8b5e5759637235a6f2b2a85c2be0f1 upstream.
If a hardware-specific driver does not provide a name, the timer-of core
falls back to Due to generic DT node naming policies,
that name is almost always "timer", and thus doesn't identify the actual
timer used.
Fix this by using device_node.full_name instead, which includes the unit
Example impact on /proc/timer_list:
-Clock Event Device: timer
+Clock Event Device: timer@fcfec400
Signed-off-by: Geert Uytterhoeven <>
Reviewed-by: Rob Herring <>
Signed-off-by: Daniel Lezcano <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c
index 80542289fae7..d6f0d5a5c6ff 100644
--- a/drivers/clocksource/timer-of.c
+++ b/drivers/clocksource/timer-of.c
@@ -188,7 +188,7 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to)
if (!to->
- to-> = np->name;
+ to-> = np->full_name;
to->np = np;