aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/mpc5xxx_clocks.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev/mpc5xxx_clocks.c')
-rw-r--r--arch/powerpc/sysdev/mpc5xxx_clocks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/mpc5xxx_clocks.c b/arch/powerpc/sysdev/mpc5xxx_clocks.c
index 5492dc5f56f4..f4f0301b9a60 100644
--- a/arch/powerpc/sysdev/mpc5xxx_clocks.c
+++ b/arch/powerpc/sysdev/mpc5xxx_clocks.c
@@ -26,8 +26,7 @@ unsigned long mpc5xxx_get_bus_frequency(struct device_node *node)
26 of_node_put(node); 26 of_node_put(node);
27 node = np; 27 node = np;
28 } 28 }
29 if (node) 29 of_node_put(node);
30 of_node_put(node);
31 30
32 return p_bus_freq ? *p_bus_freq : 0; 31 return p_bus_freq ? *p_bus_freq : 0;
33} 32}