drm/hyperv: Remove firmware framebuffers with aperture helper
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Jan 2024 10:15:09 +0000 (11:15 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 12 Jan 2024 11:38:37 +0000 (12:38 +0100)
commit778e73d2411abc8f3a2d60dbf038acaec218792e
tree53b935a3603da0f7776c348889e94075838e37b1
parent7452b319bd30d02c9e353d11206410fd66a67efa
drm/hyperv: Remove firmware framebuffers with aperture helper

Replace use of screen_info state with the correct interface from
the aperture helpers. The state is only for architecture and firmware
code. It is not guaranteed to contain valid data. Drivers are thus
not allowed to use it.

For removing conflicting firmware framebuffers, there are aperture
helpers. Hence replace screen_info with the correct function that will
remove conflicting framebuffers for the hyperv-drm driver. Also
move the call to the correct place within the driver.

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/gpu/drm/hyperv/hyperv_drm_drv.c