diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2016-08-15 10:04:21 +0300 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-02-06 20:22:01 +0100 |
commit | 3d3c8c30ead13f641d97e4b526547fe5af71522f (patch) | |
tree | 825da890d47c56f03ce9cea8cb697905e3b5eb83 /src | |
parent | 8e4aafb531cb0455bf01effec5bbbc16c890cdf8 (diff) | |
download | coreboot-3d3c8c30ead13f641d97e4b526547fe5af71522f.tar.xz |
devtree: Drop unused parameter show_devs_tree() call
Change-Id: I14c044bb32713ef4133bce8a8238a2bc200c4959
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/18085
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/device/device.c | 2 | ||||
-rw-r--r-- | src/device/device_util.c | 8 | ||||
-rw-r--r-- | src/include/device/device.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/device/device.c b/src/device/device.c index 9ea32cca49..0231ec72c9 100644 --- a/src/device/device.c +++ b/src/device/device.c @@ -989,7 +989,7 @@ void dev_enumerate(void) show_all_devs(BIOS_SPEW, "Before device enumeration."); printk(BIOS_SPEW, "Compare with tree...\n"); - show_devs_tree(root, BIOS_SPEW, 0, 0); + show_devs_tree(root, BIOS_SPEW, 0); if (root->chip_ops && root->chip_ops->enable_dev) root->chip_ops->enable_dev(root); diff --git a/src/device/device_util.c b/src/device/device_util.c index cd33aac263..1a0a60fdb3 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -813,7 +813,7 @@ void print_resource_tree(struct device *root, int debug_level, const char *msg) resource_tree(root, debug_level, 0); } -void show_devs_tree(struct device *dev, int debug_level, int depth, int linknum) +void show_devs_tree(struct device *dev, int debug_level, int depth) { char depth_str[20]; int i; @@ -830,7 +830,7 @@ void show_devs_tree(struct device *dev, int debug_level, int depth, int linknum) for (link = dev->link_list; link; link = link->next) { for (sibling = link->children; sibling; sibling = sibling->sibling) - show_devs_tree(sibling, debug_level, depth + 1, i); + show_devs_tree(sibling, debug_level, depth + 1); } } @@ -839,7 +839,7 @@ void show_all_devs_tree(int debug_level, const char *msg) /* Bail if not printing to screen. */ if (!do_printk(debug_level, "Show all devs in tree form... %s\n", msg)) return; - show_devs_tree(all_devices, debug_level, 0, -1); + show_devs_tree(all_devices, debug_level, 0); } void show_devs_subtree(struct device *root, int debug_level, const char *msg) @@ -849,7 +849,7 @@ void show_devs_subtree(struct device *root, int debug_level, const char *msg) dev_path(root), msg)) return; do_printk(debug_level, "%s\n", msg); - show_devs_tree(root, debug_level, 0, -1); + show_devs_tree(root, debug_level, 0); } void show_all_devs(int debug_level, const char *msg) diff --git a/src/include/device/device.h b/src/include/device/device.h index 39bf718f1f..47509f7df6 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -214,7 +214,7 @@ void set_cpu_topology(device_t cpu, unsigned node, unsigned package, unsigned co /* Debug functions */ void print_resource_tree(struct device * root, int debug_level, const char *msg); -void show_devs_tree(struct device *dev, int debug_level, int depth, int linknum); +void show_devs_tree(struct device *dev, int debug_level, int depth); void show_devs_subtree(struct device *root, int debug_level, const char *msg); void show_all_devs(int debug_level, const char *msg); void show_all_devs_tree(int debug_level, const char *msg); |