diff options
author | Furquan Shaikh <furquan@google.com> | 2021-09-22 13:35:48 -0700 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2021-09-24 21:20:07 +0000 |
commit | 20c709daade1b894ffc8559c67d35af0172efe94 (patch) | |
tree | 4d12fefe9932d362b2c801b876e33664b528d8b1 /src/device | |
parent | 0f73791606b216912be8d88c83e21ac0b8fe0d6a (diff) | |
download | coreboot-20c709daade1b894ffc8559c67d35af0172efe94.tar.gz coreboot-20c709daade1b894ffc8559c67d35af0172efe94.tar.bz2 coreboot-20c709daade1b894ffc8559c67d35af0172efe94.zip |
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>
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/device_const.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/device/device_const.c b/src/device/device_const.c index 92bae3793065..c629f0524eaa 100644 --- a/src/device/device_const.c +++ b/src/device/device_const.c @@ -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. * |