Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev/hyperv_fb: Do not clear global screen_info

Do not clear the global instance of screen_info. If necessary, clearing
fields in screen_info should be done by architecture or firmware code
that maintains 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>

authored by

Thomas Zimmermann and committed by
Helge Deller
c25a19af df67699c

+1 -8
+1 -8
drivers/video/fbdev/hyperv_fb.c
··· 48 48 #include <linux/aperture.h> 49 49 #include <linux/module.h> 50 50 #include <linux/kernel.h> 51 - #include <linux/screen_info.h> 52 51 #include <linux/vmalloc.h> 53 52 #include <linux/init.h> 54 53 #include <linux/completion.h> ··· 1058 1059 else 1059 1060 aperture_remove_all_conflicting_devices(KBUILD_MODNAME); 1060 1061 1061 - if (!gen2vm) { 1062 + if (!gen2vm) 1062 1063 pci_dev_put(pdev); 1063 - } else if (IS_ENABLED(CONFIG_SYSFB)) { 1064 - /* framebuffer is reallocated, clear screen_info to avoid misuse from kexec */ 1065 - screen_info.lfb_size = 0; 1066 - screen_info.lfb_base = 0; 1067 - screen_info.orig_video_isVGA = 0; 1068 - } 1069 1064 1070 1065 return 0; 1071 1066