diff options
Diffstat (limited to 'util/sconfig')
-rw-r--r-- | util/sconfig/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c index 3e3bd17098..0d8f7f86af 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -889,9 +889,6 @@ static void emit_chip_headers(FILE *fil, struct chip *chip) { struct chip *tmp = chip; - fprintf(fil, "#include <device/device.h>\n"); - fprintf(fil, "#include <device/pci.h>\n"); - while (chip) { if (chip->chiph_exists) fprintf(fil, "#include \"%s/chip.h\"\n", chip->name); @@ -1347,6 +1344,9 @@ int main(int argc, char **argv) fprintf(autohead, "#define __STATIC_DEVICE_TREE_H\n\n"); fprintf(autohead, "#include <device/device.h>\n\n"); + fprintf(autogen, "#include <device/device.h>\n"); + fprintf(autogen, "#include <device/pci.h>\n\n"); + emit_chips(autogen); walk_device_tree(autogen, autohead, &base_root_dev, inherit_subsystem_ids); |