mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/hyperv-drm: Use video aperture helpers
DRM's aperture functions have long been implemented as helpers under drivers/video/ for use with fbdev. Avoid the DRM wrappers by calling the video functions directly. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: Deepak Rawat <drawat.floss@gmail.com> Reviewed-by: Deepak Rawat <drawat.floss@gmail.com> Acked-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240930130921.689876-7-tzimmermann@suse.de
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
* Copyright 2021 Microsoft
|
||||
*/
|
||||
|
||||
#include <linux/aperture.h>
|
||||
#include <linux/efi.h>
|
||||
#include <linux/hyperv.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
|
||||
#include <drm/drm_aperture.h>
|
||||
#include <drm/drm_atomic_helper.h>
|
||||
#include <drm/drm_client_setup.h>
|
||||
#include <drm/drm_drv.h>
|
||||
@@ -126,7 +126,7 @@ static int hyperv_vmbus_probe(struct hv_device *hdev,
|
||||
goto err_hv_set_drv_data;
|
||||
}
|
||||
|
||||
drm_aperture_remove_framebuffers(&hyperv_driver);
|
||||
aperture_remove_all_conflicting_devices(hyperv_driver.name);
|
||||
|
||||
ret = hyperv_setup_vram(hv, hdev);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user