summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-06-03 10:40:58 -0700
committerMartin Roth <martinroth@google.com>2018-06-08 03:29:37 +0000
commit5ad79cdf2f702eff547816b82ebf26f16d1abe54 (patch)
tree099b36eca8b0ec6abe38afa8a4553a81d16a36da /util
parentf2dd0499b65149c90c1d3ddaa034b9aaa9850e33 (diff)
downloadcoreboot-5ad79cdf2f702eff547816b82ebf26f16d1abe54.tar.xz
util/sconfig: Get rid of unused parameter to walk_device_tree
This change gets rid of unused 3rd parameter chips to the function walk_device_tree. BUG=b:80081934 TEST=Verified that abuild compiles successfully for all boards. Change-Id: I255ff030562073b16310fc22a0981808bf2c062f Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/26801 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/sconfig/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 8059a8754e..7c838bfc8b 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -621,8 +621,7 @@ static void pass1(FILE *fil, struct device *ptr)
}
static void walk_device_tree(FILE *fil, struct device *ptr,
- void (*func)(FILE *, struct device *),
- struct device *chips)
+ void (*func)(FILE *, struct device *))
{
do {
func(fil, ptr);
@@ -760,13 +759,13 @@ int main(int argc, char **argv)
emit_chips(autogen);
- walk_device_tree(autogen, &root, inherit_subsystem_ids, NULL);
+ walk_device_tree(autogen, &root, inherit_subsystem_ids);
fprintf(autogen, "\n/* pass 0 */\n");
- walk_device_tree(autogen, &root, pass0, NULL);
+ walk_device_tree(autogen, &root, pass0);
fprintf(autogen, "\n/* pass 1 */\n"
"DEVTREE_CONST struct device * DEVTREE_CONST last_dev = &%s;\n",
lastnode->name);
- walk_device_tree(autogen, &root, pass1, NULL);
+ walk_device_tree(autogen, &root, pass1);
fclose(autogen);