summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2026-05-02 15:14:27 +0300
committerGregory CLEMENT <gregory.clement@bootlin.com>2026-06-01 09:24:46 +0300
commit79c72baaae2322ee7ef2aef26d04250e580dccd9 (patch)
tree0beabf064e857ab8dd0804112c0697cfb5095db2
parente73bd62dd7de707ecbf0d326efcad6756c674da4 (diff)
downloadlinux-79c72baaae2322ee7ef2aef26d04250e580dccd9.tar.xz
ARM: mvebu: simplify of_node_put calls
In armada_370_coherency_init, cpu_config_np is no longer needed after of_iomap. We can call of_node_put earlier and summarize the two calls. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
-rw-r--r--arch/arm/mach-mvebu/coherency.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c
index a8288a29c1f5..f27b4ec13df2 100644
--- a/arch/arm/mach-mvebu/coherency.c
+++ b/arch/arm/mach-mvebu/coherency.c
@@ -135,12 +135,9 @@ static void __init armada_370_coherency_init(struct device_node *np)
"marvell,armada-xp-cpu-config");
cpu_config_base = of_iomap(cpu_config_np, 0);
- if (!cpu_config_base) {
- of_node_put(cpu_config_np);
- goto exit;
- }
-
of_node_put(cpu_config_np);
+ if (!cpu_config_base)
+ goto exit;
cpuhp_setup_state_nocalls(CPUHP_AP_ARM_MVEBU_COHERENCY,
"arm/mvebu/coherency:starting",