path: root/drivers/gpu/vga
diff options
authorDaniel Vetter <>2019-06-24 11:21:53 +0200
committerMaarten Lankhorst <>2019-06-26 10:36:49 +0200
commit6116b892bd4fd0ddc5f30566a556218bb2e1a9b6 (patch)
tree1d0107fb40ac2de4f5a7ec6755e5a6cf2137120d /drivers/gpu/vga
parent2443091408c267f84b40025183490486b79ee2cd (diff)
vga_switcheroo: Depend upon fbcon being built-in, if enabled
Fixes linking fail when fbcon/fbdev is modular and vgaswitcheroo is enabled: x86_64-linux-gnu-ld: drivers/gpu/vga/vga_switcheroo.o: in function `vga_switchto_stage2': vga_switcheroo.c:(.text+0x997): undefined reference to `fbcon_remap_all' Unfortunately this means that in a default allmodconfig we will disable vgaswitcheroo. v2: I first tried to fix this with an EXPORT_SYMBOL, but vga_switcheroo is never a module, so this doesn't work. Reported-by: Stephen Rothwell <> Reported-by: kbuild test robot <> Fixes: 1cd51b5d200d ("vgaswitcheroo: call fbcon_remap_all directly") Signed-off-by: Daniel Vetter <> Cc: Stephen Rothwell <> Cc: Lukas Wunner <> Cc: Daniel Vetter <> Cc: Sam Ravnborg <> Cc: Maarten Lankhorst <> Cc: David Airlie <> Cc: Daniel Vetter <> Cc: Maxime Ripard <> Cc: Sean Paul <> Cc: Bartlomiej Zolnierkiewicz <> Cc: Hans de Goede <> Cc: Yisheng Xie <> Cc: Cc: Daniel Thompson <> Cc: Lee Jones <> Cc: Cc: Signed-off-by: Maarten Lankhorst <> Link:
Diffstat (limited to 'drivers/gpu/vga')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/vga/Kconfig b/drivers/gpu/vga/Kconfig
index 84ab482d0db6..c8c770b05ed9 100644
--- a/drivers/gpu/vga/Kconfig
+++ b/drivers/gpu/vga/Kconfig
@@ -23,6 +23,7 @@ config VGA_SWITCHEROO
depends on X86
depends on ACPI
depends on PCI
+ depends on (FRAMEBUFFER_CONSOLE=n || FB=y)
select VGA_ARB
Many laptops released in 2008/9/10 have two GPUs with a multiplexer