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>
This commit is contained in:
Furquan Shaikh 2021-09-16 20:57:06 -07:00
parent ebf1482627
commit e1ba1c03ab
2 changed files with 0 additions and 13 deletions

View File

@ -48,6 +48,4 @@ struct drivers_gfx_generic_config {
struct drivers_gfx_generic_device_config device[5]; struct drivers_gfx_generic_device_config device[5];
}; };
extern struct device *find_gfx_dev(void);
#endif /* __DRIVERS_GFX_GENERIC_CHIP_H__ */ #endif /* __DRIVERS_GFX_GENERIC_CHIP_H__ */

View File

@ -155,14 +155,3 @@ struct chip_operations drivers_gfx_generic_ops = {
CHIP_NAME("Generic Graphics Device") CHIP_NAME("Generic Graphics Device")
.enable_dev = gfx_enable .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;
}