vgacon: remove screen_info dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Oct 2023 21:18:41 +0000 (23:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Oct 2023 08:17:02 +0000 (10:17 +0200)
commitacfc788233263fee9413434d39d4201a8de592ba
tree11cbb04a907bb3b12300e931e9c4df9591f55432
parentfd90410e9d74f3ff2361c7bd44c67f712fc5f588
vgacon: remove screen_info dependency

The vga console driver is fairly self-contained, and only used by
architectures that explicitly initialize the screen_info settings.

Chance every instance that picks the vga console by setting conswitchp
to call a function instead, and pass a reference to the screen_info
there.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Khalid Azzi <khalid@gonehiking.org>
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20231009211845.3136536-6-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/alpha/kernel/setup.c
arch/arm/kernel/setup.c
arch/ia64/kernel/setup.c
arch/mips/kernel/setup.c
arch/x86/kernel/setup.c
drivers/firmware/pcdp.c
drivers/video/console/vgacon.c
include/linux/console.h