diff options
author | Andreas Dannenberg <dannenberg@ti.com> | 2018-10-17 13:43:14 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-11-16 13:34:36 -0500 |
commit | e5e06b65ad6563701a069f342ce35a5576f12fd5 (patch) | |
tree | 2a05ed69173b0035068e9f0798d02181d5600868 /drivers/clk/clk-uclass.c | |
parent | 786dc91492b3e759fb22aa88c5d9cc07dc7986f1 (diff) |
clk: Allow clock defaults to be set also during re-reloc state
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>
Diffstat (limited to 'drivers/clk/clk-uclass.c')
-rw-r--r-- | drivers/clk/clk-uclass.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 2b15978e141..04b369aa5a1 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -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); |