From: Thomas Zimmermann Date: Mon, 30 Sep 2024 13:03:25 +0000 (+0200) Subject: drm/xe: Use video aperture helpers X-Git-Tag: v6.13-rc1~122^2~18^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a522000d9470e4149ca835e7bd9213bfad4d813c;p=thirdparty%2Fkernel%2Flinux.git drm/xe: 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: Lucas De Marchi Cc: "Thomas Hellström" Cc: Rodrigo Vivi Acked-by: Javier Martinez Canillas Acked-by: Alex Deucher Link: https://patchwork.freedesktop.org/patch/msgid/20240930130921.689876-28-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index 962751c966d16..088369897aa70 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -5,11 +5,11 @@ #include "xe_device.h" +#include #include #include #include -#include #include #include #include @@ -311,7 +311,7 @@ struct xe_device *xe_device_create(struct pci_dev *pdev, xe_display_driver_set_hooks(&driver); - err = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver); + err = aperture_remove_conflicting_pci_devices(pdev, driver.name); if (err) return ERR_PTR(err);