aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r--arch/arm/mach-omap2/timer.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 57b1ee39fe56..d86074745c50 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -164,15 +164,11 @@ static struct device_node * __init omap_get_timer_dt(struct of_device_id *match,
164 struct device_node *np; 164 struct device_node *np;
165 165
166 for_each_matching_node(np, match) { 166 for_each_matching_node(np, match) {
167 if (!of_device_is_available(np)) { 167 if (!of_device_is_available(np))
168 of_node_put(np);
169 continue; 168 continue;
170 }
171 169
172 if (property && !of_get_property(np, property, NULL)) { 170 if (property && !of_get_property(np, property, NULL))
173 of_node_put(np);
174 continue; 171 continue;
175 }
176 172
177 of_add_property(np, &device_disabled); 173 of_add_property(np, &device_disabled);
178 return np; 174 return np;