diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2024-01-03 11:15:12 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2024-01-12 12:38:37 +0100 |
commit | c25a19afb81cfd73dab494ba64f9a434cf1a4499 (patch) | |
tree | 38848001871298cba49fa288fcfe7443469e123d /drivers/video | |
parent | df67699c9cb0ceb70f6cc60630ca938c06773eda (diff) | |
download | lwn-c25a19afb81cfd73dab494ba64f9a434cf1a4499.tar.gz lwn-c25a19afb81cfd73dab494ba64f9a434cf1a4499.zip |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/hyperv_fb.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/video/fbdev/hyperv_fb.c b/drivers/video/fbdev/hyperv_fb.c index 09b18a8cddee..c26ee6fd73c9 100644 --- a/drivers/video/fbdev/hyperv_fb.c +++ b/drivers/video/fbdev/hyperv_fb.c @@ -48,7 +48,6 @@ #include <linux/aperture.h> #include <linux/module.h> #include <linux/kernel.h> -#include <linux/screen_info.h> #include <linux/vmalloc.h> #include <linux/init.h> #include <linux/completion.h> @@ -1059,14 +1058,8 @@ getmem_done: else aperture_remove_all_conflicting_devices(KBUILD_MODNAME); - if (!gen2vm) { + if (!gen2vm) pci_dev_put(pdev); - } else if (IS_ENABLED(CONFIG_SYSFB)) { - /* framebuffer is reallocated, clear screen_info to avoid misuse from kexec */ - screen_info.lfb_size = 0; - screen_info.lfb_base = 0; - screen_info.orig_video_isVGA = 0; - } return 0; |