From: Thomas Zimmermann Date: Mon, 30 Sep 2024 13:03:21 +0000 (+0200) Subject: drm/vboxvideo: Use video aperture helpers X-Git-Tag: v6.13-rc1~122^2~18^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=574c1c334c5a7ebc32eb635b8ed9b8ded3337150;p=thirdparty%2Fkernel%2Flinux.git drm/vboxvideo: 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: Hans de Goede Acked-by: Javier Martinez Canillas Acked-by: Alex Deucher Link: https://patchwork.freedesktop.org/patch/msgid/20240930130921.689876-24-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/vboxvideo/vbox_drv.c b/drivers/gpu/drm/vboxvideo/vbox_drv.c index 49dc337b3e01e..a536c467e2b20 100644 --- a/drivers/gpu/drm/vboxvideo/vbox_drv.c +++ b/drivers/gpu/drm/vboxvideo/vbox_drv.c @@ -7,11 +7,12 @@ * Michael Thayer */ + +#include #include #include #include -#include #include #include #include @@ -45,7 +46,7 @@ static int vbox_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) if (!vbox_check_supported(VBE_DISPI_ID_HGSMI)) return -ENODEV; - ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver); + ret = aperture_remove_conflicting_pci_devices(pdev, driver.name); if (ret) return ret;