The register_gop_device() function registers an "efi-framebuffer" platform
device to match against the efifb driver, to have an early framebuffer for
EFI platforms.
But the Generic System Framebuffers (sysfb) already has support for this.
Instead of having duplicated logic for x86 and other architectures using
EFI, consolidate the two in sysfb and remove it from the EFI init logic.
Signed-off-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>
---
arch/arm/Kconfig | 1 +
arch/arm/include/asm/efi.h | 5 +-
arch/arm64/Kconfig | 1 +
arch/arm64/include/asm/efi.h | 5 +-
arch/riscv/Kconfig | 1 +
arch/riscv/include/asm/efi.h | 5 +-
drivers/firmware/Kconfig | 7 ++-
drivers/firmware/Makefile | 2 +-
drivers/firmware/efi/efi-init.c | 90 -------------------------------
drivers/firmware/efi/sysfb_efi.c | 77 +++++++++++++++++++++++++-
drivers/firmware/sysfb.c | 40 +++++++++-----
drivers/firmware/sysfb_simplefb.c | 29 ++++++----
include/linux/sysfb.h | 28 +++++-----
13 files changed, 145 insertions(+), 146 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 24804f11302..30ba195ca72 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -127,6 +127,7 @@ config ARM
select PERF_USE_VMALLOC
select RTC_LIB
select SET_FS
+ select SYSFB
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature