dm: spl: Don't set up device tree with of-platdata
When this feature is enabled, we should not access the device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a091a8f084
commit
d223e0a822
|
@ -202,7 +202,7 @@ int spl_init(void)
|
||||||
gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN;
|
gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN;
|
||||||
gd->malloc_ptr = 0;
|
gd->malloc_ptr = 0;
|
||||||
#endif
|
#endif
|
||||||
if (CONFIG_IS_ENABLED(OF_CONTROL)) {
|
if (CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)) {
|
||||||
ret = fdtdec_setup();
|
ret = fdtdec_setup();
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("fdtdec_setup() returned error %d\n", ret);
|
debug("fdtdec_setup() returned error %d\n", ret);
|
||||||
|
|
Loading…
Reference in New Issue