summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2021-09-16 20:57:06 -0700
committerFurquan Shaikh <furquan@google.com>2021-09-21 01:10:23 +0000
commite1ba1c03aba66696770ffd2d6bad6ac5602862ca (patch)
tree33e04339550047a3006cffbd14ce6cf1c2a75efc /src/drivers
parentebf14826279d814259e8daf31891bf58120a6623 (diff)
drivers/gfx/generic: Drop unused find_gfx_dev
This change drops the function `find_gfx_dev()` as it is unused now. Change-Id: Ie42707bd45348dc7485ca0ca12ebff2994897e6b Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57746 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/gfx/generic/chip.h2
-rw-r--r--src/drivers/gfx/generic/generic.c11
2 files changed, 0 insertions, 13 deletions
diff --git a/src/drivers/gfx/generic/chip.h b/src/drivers/gfx/generic/chip.h
index 8579b39840..becc2edaf0 100644
--- a/src/drivers/gfx/generic/chip.h
+++ b/src/drivers/gfx/generic/chip.h
@@ -48,6 +48,4 @@ struct drivers_gfx_generic_config {
struct drivers_gfx_generic_device_config device[5];
};
-extern struct device *find_gfx_dev(void);
-
#endif /* __DRIVERS_GFX_GENERIC_CHIP_H__ */
diff --git a/src/drivers/gfx/generic/generic.c b/src/drivers/gfx/generic/generic.c
index c07739fd4e..98bde79cdc 100644
--- a/src/drivers/gfx/generic/generic.c
+++ b/src/drivers/gfx/generic/generic.c
@@ -155,14 +155,3 @@ struct chip_operations drivers_gfx_generic_ops = {
CHIP_NAME("Generic Graphics Device")
.enable_dev = gfx_enable
};
-
-struct device *find_gfx_dev(void)
-{
- struct device *dev;
-
- for (dev = all_devices; dev; dev = dev->next) {
- if (dev->chip_ops && dev->chip_ops == &drivers_gfx_generic_ops)
- return dev;
- }
- return NULL;
-}