From: Thomas Zimmermann Date: Mon, 30 Sep 2024 13:03:19 +0000 (+0200) Subject: drm/bochs: Use video aperture helpers X-Git-Tag: v6.13-rc1~122^2~18^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7934a1c2509740e6cbfa899f750a0d5cbf9ba09d;p=thirdparty%2Fkernel%2Flinux.git drm/bochs: 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: Gerd Hoffmann Acked-by: Javier Martinez Canillas Acked-by: Alex Deucher Link: https://patchwork.freedesktop.org/patch/msgid/20240930130921.689876-22-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/tiny/bochs.c b/drivers/gpu/drm/tiny/bochs.c index 3ba7f09f3e7b9..447989bb8201e 100644 --- a/drivers/gpu/drm/tiny/bochs.c +++ b/drivers/gpu/drm/tiny/bochs.c @@ -1,9 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-or-later +#include #include #include -#include #include #include #include @@ -711,7 +711,7 @@ static int bochs_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent struct drm_device *dev; int ret; - ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &bochs_driver); + ret = aperture_remove_conflicting_pci_devices(pdev, bochs_driver.name); if (ret) return ret;