From: Thomas Zimmermann Date: Mon, 30 Sep 2024 13:03:23 +0000 (+0200) Subject: drm/virtgpu: Use video aperture helpers X-Git-Tag: v6.13-rc1~122^2~18^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2c323d00b0f22b11af3b8604b183fd9ec6010c7;p=thirdparty%2Fkernel%2Flinux.git drm/virtgpu: 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 Cc: David Airlie Cc: Gerd Hoffmann Cc: Gurchetan Singh Cc: Chia-I Wu Acked-by: Javier Martinez Canillas Acked-by: Alex Deucher Link: https://patchwork.freedesktop.org/patch/msgid/20240930130921.689876-26-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c index 1e08d91a4d17e..ffca6e2e1c9a1 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.c +++ b/drivers/gpu/drm/virtio/virtgpu_drv.c @@ -26,13 +26,13 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include #include #include #include #include #include -#include #include #include #include @@ -59,7 +59,7 @@ static int virtio_gpu_pci_quirk(struct drm_device *dev) vga ? "virtio-vga" : "virtio-gpu-pci", pname); if (vga) { - ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver); + ret = aperture_remove_conflicting_pci_devices(pdev, driver.name); if (ret) return ret; }