From: Thomas Zimmermann Date: Mon, 30 Sep 2024 13:03:05 +0000 (+0200) Subject: drm/i915: Use video aperture helpers X-Git-Tag: v6.13-rc1~122^2~18^2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4c80710d97c251f94a36228064c3a39fb75394b;p=thirdparty%2Fkernel%2Flinux.git drm/i915: 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: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: Tvrtko Ursulin Acked-by: Jani Nikula Acked-by: Javier Martinez Canillas Acked-by: Alex Deucher Link: https://patchwork.freedesktop.org/patch/msgid/20240930130921.689876-8-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c index a40f05b993dad..74fa8f57f302e 100644 --- a/drivers/gpu/drm/i915/i915_driver.c +++ b/drivers/gpu/drm/i915/i915_driver.c @@ -27,6 +27,7 @@ * */ +#include #include #include #include @@ -39,7 +40,6 @@ #include #include -#include #include #include #include @@ -485,7 +485,7 @@ static int i915_driver_hw_probe(struct drm_i915_private *dev_priv) if (ret) goto err_perf; - ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, dev_priv->drm.driver); + ret = aperture_remove_conflicting_pci_devices(pdev, dev_priv->drm.driver->name); if (ret) goto err_ggtt;