clk: Use of_property_present() for testing DT property presence
[linux-2.6-microblaze.git] / drivers / clk / clk.c
index ae07685..f7528d7 100644 (file)
@@ -4880,8 +4880,8 @@ static struct device_node *get_clk_provider_node(struct device *dev)
        np = dev->of_node;
        parent_np = dev->parent ? dev->parent->of_node : NULL;
 
-       if (!of_find_property(np, "#clock-cells", NULL))
-               if (of_find_property(parent_np, "#clock-cells", NULL))
+       if (!of_property_present(np, "#clock-cells"))
+               if (of_property_present(parent_np, "#clock-cells"))
                        np = parent_np;
 
        return np;