summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/device/device.h6
-rw-r--r--util/sconfig/main.c3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index a1a64e2e28..b52be54177 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -487,12 +487,6 @@ static inline DEVTREE_CONST void *config_of(const struct device *dev)
devtree_die();
}
-/*
- * Returns pointer to config structure of root device (B:D:F = 0:00:0) defined by
- * sconfig in static.{h/c}.
- */
-#define config_of_soc() __pci_0_00_0_config
-
static inline bool is_root_device(const struct device *dev)
{
if (!dev || !dev->upstream)
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index c06e67ecac..677b9d2122 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -1905,6 +1905,9 @@ static void generate_outputh(FILE *f, const char *fw_conf_header, const char *de
fprintf(f, "#include <%s>\n", fw_conf_header);
fprintf(f, "#include <%s>\n\n", device_header);
+ fprintf(f, "/* Returns pointer to config structure of root device (B:D:F = 0:00:0) */\n");
+ fprintf(f, "#define config_of_soc() __pci_0_00_0_config\n");
+
fprintf(f, "\n#endif /* __STATIC_DEVICE_TREE_H */\n");
}