From e1ba1c03aba66696770ffd2d6bad6ac5602862ca Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 16 Sep 2021 20:57:06 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57746 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Karthik Ramasubramanian --- src/drivers/gfx/generic/chip.h | 2 -- src/drivers/gfx/generic/generic.c | 11 ----------- 2 files changed, 13 deletions(-) (limited to 'src/drivers') 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; -} -- cgit v1.2.3