From a93c3fe7f05f5ab440f377360e5149f7234abb73 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Tue, 9 Oct 2012 22:28:56 +0300 Subject: Drop redundant CHIP_NAME in mainboard.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compose the name from Kconfig strings instead. As the field is for debug print use only, a minor change in the output should do no harm. The strings no longer include word "Mainboard". Change-Id: Ifd24f408271eb5a5d1a08a317512ef00cb537ee2 Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/1635 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Stefan Reinauer --- util/sconfig/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/sconfig/main.c b/util/sconfig/main.c index f066d7bad2..91d85fed87 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -419,6 +419,8 @@ static void pass1(FILE *fil, struct device *ptr) fprintf(fil, "\t.sibling = &%s,\n", ptr->sibling->name); fprintf(fil, "#ifndef __PRE_RAM__\n"); fprintf(fil, "\t.chip_ops = &%s_ops,\n", ptr->chip->name_underscore); + if (ptr->chip->chip == &mainboard) + fprintf(fil, "\t.name = mainboard_name,\n"); fprintf(fil, "#endif\n"); if (ptr->chip->chiph_exists) fprintf(fil, "\t.chip_info = &%s_info_%d,\n", ptr->chip->name_underscore, ptr->chip->id); -- cgit v1.2.3