From 5191623149e5f15b869cd103597eb7a26f399bd9 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 19 Jan 2024 15:40:31 +0100 Subject: [PATCH] device_util: Drop unused function bus_path Signed-off-by: Arthur Heymans Change-Id: Id23a291af20473c3b3e67178b66fcde920d49984 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80097 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held Reviewed-by: Lean Sheng Tan --- src/device/device_util.c | 8 -------- src/include/device/device.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/device/device_util.c b/src/device/device_util.c index ac2d33cdb9..42dc89a92e 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -249,14 +249,6 @@ const char *dev_name(const struct device *dev) return "unknown"; } -const char *bus_path(struct bus *bus) -{ - static char buffer[BUS_PATH_MAX]; - snprintf(buffer, sizeof(buffer), - "%s,%d", dev_path(bus->dev), bus->link_num); - return buffer; -} - /** * Allocate 64 more resources to the free list. * diff --git a/src/include/device/device.h b/src/include/device/device.h index 752e1c02aa..13870513e1 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -189,7 +189,6 @@ void assign_resources(struct bus *bus); const char *dev_name(const struct device *dev); const char *dev_path(const struct device *dev); u32 dev_path_encode(const struct device *dev); -const char *bus_path(struct bus *bus); void dev_set_enabled(struct device *dev, int enable); void disable_children(struct bus *bus); bool dev_is_active_bridge(struct device *dev);