summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
-}