diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2024-01-19 15:40:31 +0100 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2024-01-21 13:18:15 +0000 |
commit | 5191623149e5f15b869cd103597eb7a26f399bd9 (patch) | |
tree | 551b14a1cf9a1a760cb5ba0aaca73327740a2f7c | |
parent | 4d3aa60ac769e38cc24b690dbd371bc1391e4084 (diff) |
device_util: Drop unused function bus_path
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Id23a291af20473c3b3e67178b66fcde920d49984
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80097
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
-rw-r--r-- | src/device/device_util.c | 8 | ||||
-rw-r--r-- | src/include/device/device.h | 1 |
2 files changed, 0 insertions, 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); |