summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/common/block/graphics/early_graphics.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/soc/intel/common/block/graphics/early_graphics.c b/src/soc/intel/common/block/graphics/early_graphics.c
index 3ae7697de3..8157a4c284 100644
--- a/src/soc/intel/common/block/graphics/early_graphics.c
+++ b/src/soc/intel/common/block/graphics/early_graphics.c
@@ -6,8 +6,6 @@
#include <intelblocks/early_graphics.h>
#include <soc/pci_devs.h>
-static bool initialized;
-
static void device_init(void)
{
/* Disable response in IO and MMIO space. */
@@ -37,19 +35,15 @@ bool early_graphics_init(void)
early_graphics_soc_panel_init();
gma_gfxinit(&ret);
- initialized = !!ret;
-
- return initialized;
+ return !!ret;
}
void early_graphics_stop(void)
{
- int ret;
-
- if (!initialized)
+ if (!CONFIG(MAINBOARD_USE_EARLY_LIBGFXINIT))
return;
- gma_gfxstop(&ret);
+ gma_gfxstop();
/*
* Temporary workaround