mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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>
This commit is contained in:
parent
e73bd62dd7
commit
79c72baaae
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user