hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/drivers/core/root.c
....@@ -224,12 +224,8 @@
224224
225225 for (np = node_parent->child; np; np = np->sibling) {
226226 if (pre_reloc_only &&
227
-#ifdef CONFIG_USING_KERNEL_DTB
228
- (!of_find_property(np, "u-boot,dm-pre-reloc", NULL) &&
229
- !of_find_property(np, "u-boot,dm-spl", NULL)))
230
-#else
231
- !of_find_property(np, "u-boot,dm-pre-reloc", NULL))
232
-#endif
227
+ (!of_find_property(np, "u-boot,dm-pre-reloc", NULL) &&
228
+ !of_find_property(np, "u-boot,dm-spl", NULL)))
233229 continue;
234230 if (!of_device_is_available(np)) {
235231 pr_debug(" - ignoring disabled device\n");
....@@ -272,7 +268,6 @@
272268 int offset, bool pre_reloc_only)
273269 {
274270 int ret = 0, err;
275
- const char *name;
276271
277272 for (offset = fdt_first_subnode(blob, offset);
278273 offset > 0;
....@@ -291,11 +286,15 @@
291286 ret);
292287 }
293288
289
+#if CONFIG_IS_ENABLED(SCMI_FIRMWARE)
290
+ const char *name;
291
+
294292 /* There is no compatible in "/firmware", bind it by default. */
295293 name = fdt_get_name(blob, offset, NULL);
296294 if (name && !strcmp(name, "firmware"))
297295 ret = device_bind_driver_to_node(parent, "firmware",
298296 name, offset_to_ofnode(offset), NULL);
297
+#endif
299298 }
300299
301300 if (ret)