firmware/sysfb: Clear screen_info state after consuming it
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Jan 2024 10:15:11 +0000 (11:15 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 12 Jan 2024 11:38:37 +0000 (12:38 +0100)
commitdf67699c9cb0ceb70f6cc60630ca938c06773eda
tree712eaf1cef72e8b70060b99105e299971919ca01
parent0aa0838c84da22cd50d8a92fac26637c630a3235
firmware/sysfb: Clear screen_info state after consuming it

After consuming the global screen_info_state in sysfb_init(), the
created platform device maintains the firmware framebuffer. Clear
screen_info to avoid conflicting access. Subsequent kexec reboots
now ignore the firmware framebuffer.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/firmware/sysfb.c