device: Drop unused function dev_find_matching_device_on_bus

With use of device pointers, `dev_find_matching_device_on_bus()` is
now unused and hence this change drops the function.

Change-Id: I30fcb2d9932d770ca614cceffb15646ce8256465
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57846
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Furquan Shaikh
2021-09-22 13:35:48 -07:00
committed by Paul Fagerburg
parent 0f73791606
commit 20c709daad
2 changed files with 0 additions and 27 deletions

View File

@ -70,19 +70,6 @@ DEVTREE_CONST struct device *dev_find_path(
return result;
}
DEVTREE_CONST struct device *dev_find_matching_device_on_bus(const struct bus *bus,
match_device_fn fn)
{
DEVTREE_CONST struct device *child = NULL;
while ((child = dev_bus_each_child(bus, child)) != NULL) {
if (fn(child))
break;
}
return child;
}
/**
* Given a device pointer, find the next PCI device.
*