Merge branch 'depends/cleanup' into next/dt
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-omap2 / timer.c
index 57b1ee39fe5606def050b1275b0569be7845f79d..d86074745c5071bf45f50df5f90ecc41a9d7f948 100644 (file)
@@ -164,15 +164,11 @@ static struct device_node * __init omap_get_timer_dt(struct of_device_id *match,
        struct device_node *np;
 
        for_each_matching_node(np, match) {
-               if (!of_device_is_available(np)) {
-                       of_node_put(np);
+               if (!of_device_is_available(np))
                        continue;
-               }
 
-               if (property && !of_get_property(np, property, NULL)) {
-                       of_node_put(np);
+               if (property && !of_get_property(np, property, NULL))
                        continue;
-               }
 
                of_add_property(np, &device_disabled);
                return np;