Skip to content

Commit c77ec6b

Browse files
committed
drm/cirrus: 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: Dave Airlie <airlied@redhat.com> Cc: Gerd Hoffmann <kraxel@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-23-tzimmermann@suse.de
1 parent 7934a1c commit c77ec6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/tiny/cirrus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
* Copyright 1999-2001 Jeff Garzik <jgarzik@pobox.com>
1717
*/
1818

19+
#include <linux/aperture.h>
1920
#include <linux/iosys-map.h>
2021
#include <linux/module.h>
2122
#include <linux/pci.h>
2223

2324
#include <video/cirrus.h>
2425
#include <video/vga.h>
2526

26-
#include <drm/drm_aperture.h>
2727
#include <drm/drm_atomic.h>
2828
#include <drm/drm_atomic_helper.h>
2929
#include <drm/drm_atomic_state_helper.h>
@@ -673,7 +673,7 @@ static int cirrus_pci_probe(struct pci_dev *pdev,
673673
struct cirrus_device *cirrus;
674674
int ret;
675675

676-
ret = drm_aperture_remove_conflicting_pci_framebuffers(pdev, &cirrus_driver);
676+
ret = aperture_remove_conflicting_pci_devices(pdev, cirrus_driver.name);
677677
if (ret)
678678
return ret;
679679

0 commit comments

Comments
 (0)