clk: Allow clock defaults to be set also during re-reloc state
authorAndreas Dannenberg <dannenberg@ti.com>
Wed, 17 Oct 2018 08:13:14 +0000 (13:43 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 18:34:36 +0000 (13:34 -0500)
The earlier commit f4fcba5c5ba ("clk: implement clk_set_defaults()")
which introduced the functionality for setting clock defaults such as
rates and parents will skip the processing when executing in a re-reloc
state. This for example can prevent the assigning of clock parents
when running in SPL code. Go ahead and remove this limitation.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/clk/clk-uclass.c

index 2b15978e141a35ab706ee448b540d86f3c0310ef..04b369aa5a1e6aead2961ae46eda1bfd1570ad75 100644 (file)
@@ -243,10 +243,6 @@ int clk_set_defaults(struct udevice *dev)
 {
        int ret;
 
-       /* If this is running pre-reloc state, don't take any action. */
-       if (!(gd->flags & GD_FLG_RELOC))
-               return 0;
-
        debug("%s(%s)\n", __func__, dev_read_name(dev));
 
        ret = clk_set_default_parents(dev);