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>
This commit is contained in:
Arthur Heymans 2024-01-19 15:40:31 +01:00 committed by Lean Sheng Tan
parent 4d3aa60ac7
commit 5191623149
2 changed files with 0 additions and 9 deletions

View File

@ -249,14 +249,6 @@ const char *dev_name(const struct device *dev)
return "unknown"; 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. * Allocate 64 more resources to the free list.
* *

View File

@ -189,7 +189,6 @@ void assign_resources(struct bus *bus);
const char *dev_name(const struct device *dev); const char *dev_name(const struct device *dev);
const char *dev_path(const struct device *dev); const char *dev_path(const struct device *dev);
u32 dev_path_encode(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 dev_set_enabled(struct device *dev, int enable);
void disable_children(struct bus *bus); void disable_children(struct bus *bus);
bool dev_is_active_bridge(struct device *dev); bool dev_is_active_bridge(struct device *dev);