Skip to content

Commit 574c1c3

Browse files
committed
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 <tzimmermann@suse.de> Cc: Hans de Goede <hdegoede@redhat.com> Acked-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240930130921.689876-24-tzimmermann@suse.de
1 parent c77ec6b commit 574c1c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/gpu/drm/vboxvideo/vbox_drv.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
* Michael Thayer <michael.thayer@oracle.com,
88
* Hans de Goede <hdegoede@redhat.com>
99
*/
10+
11+
#include <linux/aperture.h>
1012
#include <linux/module.h>
1113
#include <linux/pci.h>
1214
#include <linux/vt_kern.h>
1315

14-
#include <drm/drm_aperture.h>
1516
#include <drm/drm_atomic_helper.h>
1617
#include <drm/drm_client_setup.h>
1718
#include <drm/drm_drv.h>
@@ -45,7 +46,7 @@ static int vbox_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
4546
if (!vbox_check_supported(VBE_DISPI_ID_HGSMI))
4647
return -ENODEV;
4748

48-
ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &driver);
49+
ret = aperture_remove_conflicting_pci_devices(pdev, driver.name);
4950
if (ret)
5051
return ret;
5152

0 commit comments

Comments
 (0)