clk: at91: replace dm_fdt_pre_reloc by dm_ofnode_pre_reloc
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 20 Mar 2019 17:21:24 +0000 (18:21 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Apr 2019 02:10:05 +0000 (20:10 -0600)
Prepare to remove dm_fdt_pre_reloc

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/at91/pmc.c

index 7cfbabc96d3482d46f1217bfda51dd601d1981f4..6b55ec59d6dfdd6456e26ddb3cd38ef8d6d8f861 100644 (file)
@@ -61,7 +61,7 @@ int at91_clk_sub_device_bind(struct udevice *dev, const char *drv_name)
             offset > 0;
             offset = fdt_next_subnode(fdt, offset)) {
                if (pre_reloc_only &&
-                   !dm_fdt_pre_reloc(fdt, offset))
+                   !dm_ofnode_pre_reloc(offset_to_ofnode(offset)))
                        continue;
                /*
                 * If this node has "compatible" property, this is not