diff options
| author | Martin Kaiser <martin@kaiser.cx> | 2026-05-02 15:14:27 +0300 |
|---|---|---|
| committer | Gregory CLEMENT <gregory.clement@bootlin.com> | 2026-06-01 09:24:46 +0300 |
| commit | 79c72baaae2322ee7ef2aef26d04250e580dccd9 (patch) | |
| tree | 0beabf064e857ab8dd0804112c0697cfb5095db2 | |
| parent | e73bd62dd7de707ecbf0d326efcad6756c674da4 (diff) | |
| download | linux-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.c | 7 |
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", |
