Merge tag 'u-boot-amlogic-20181207' of git://git.denx.de/u-boot-amlogic
[platform/kernel/u-boot.git] / drivers / clk / clk-uclass.c
index 2b15978..6d7a514 100644 (file)
@@ -243,8 +243,8 @@ 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))
+       /* If this not in SPL and pre-reloc state, don't take any action. */
+       if (!(IS_ENABLED(CONFIG_SPL_BUILD) || (gd->flags & GD_FLG_RELOC)))
                return 0;
 
        debug("%s(%s)\n", __func__, dev_read_name(dev));