drm: drop resource_id parameter from drm_fb_helper_remove_conflicting_pci_framebuffers
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Aug 2019 09:06:44 +0000 (11:06 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Aug 2019 08:48:31 +0000 (10:48 +0200)
Not needed any more for remove_conflicting_pci_framebuffers calls.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20190822090645.25410-3-kraxel@redhat.com
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/bochs/bochs_drv.c
drivers/gpu/drm/cirrus/cirrus.c
drivers/gpu/drm/mgag200/mgag200_drv.c
drivers/gpu/drm/qxl/qxl_drv.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/virtio/virtgpu_drv.c
include/drm/drm_fb_helper.h

index 98df55534a6d77a43b7ec079813a2672c4c853e1..6b96a5738e57aa4fa7491ce1fd519e215fdc40ac 100644 (file)
@@ -1031,7 +1031,7 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
        }
 
        /* Get rid of things like offb */
-       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "amdgpudrmfb");
+       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "amdgpudrmfb");
        if (ret)
                return ret;
 
index 770e1625d05ef5d1d4cd3272c9f8184d13ddb532..3b9b0d9bbc1417406b94ac36cfb328c269b12929 100644 (file)
@@ -114,7 +114,7 @@ static int bochs_pci_probe(struct pci_dev *pdev,
                return -ENOMEM;
        }
 
-       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "bochsdrmfb");
+       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "bochsdrmfb");
        if (ret)
                return ret;
 
index 36a69aec8a4ba5fe94f38ce1c79d711336f0e1f4..89d9e6fdeb8c5130316ef80e5529cbf2919d9620 100644 (file)
@@ -532,7 +532,7 @@ static int cirrus_pci_probe(struct pci_dev *pdev,
        struct cirrus_device *cirrus;
        int ret;
 
-       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "cirrusdrmfb");
+       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "cirrusdrmfb");
        if (ret)
                return ret;
 
index afd9119b6cf1bed4a8b143387f160ddfa0078215..4f9df3b93598a215d5e6d1701796f7b33f82d192 100644 (file)
@@ -46,7 +46,7 @@ MODULE_DEVICE_TABLE(pci, pciidlist);
 
 static int mga_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 {
-       drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "mgag200drmfb");
+       drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "mgag200drmfb");
 
        return drm_get_pci_dev(pdev, ent, &driver);
 }
index c1802e01d9f6e3eeb922b058075a9bc1cb73b9da..2b726a51a30227ed30d6f041e1c0a46a8601518e 100644 (file)
@@ -83,7 +83,7 @@ qxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        if (ret)
                goto free_dev;
 
-       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "qxl");
+       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "qxl");
        if (ret)
                goto disable_pci;
 
index a4a78dfdef37e7f0c9fd4fa311a044688e9ad98b..624aa580d418d033d91e50a15b69c8503376b67a 100644 (file)
@@ -329,7 +329,7 @@ static int radeon_pci_probe(struct pci_dev *pdev,
                return -EPROBE_DEFER;
 
        /* Get rid of things like offb */
-       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, 0, "radeondrmfb");
+       ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "radeondrmfb");
        if (ret)
                return ret;
 
index 0fc32fa0b3c0fc818f2f4584064707bf3dadbe01..3d24181636e1ef8d17f32ac7d1966bd7aaf6fe38 100644 (file)
@@ -56,7 +56,6 @@ static int virtio_gpu_pci_quirk(struct drm_device *dev, struct virtio_device *vd
        dev->pdev = pdev;
        if (vga)
                drm_fb_helper_remove_conflicting_pci_framebuffers(pdev,
-                                                                 0,
                                                                  "virtiodrmfb");
 
        /*
index 5a5f4b1d82412e083c2c0d191af72036dac547b1..8dcc012ccbc853922fac6f08030f65bbe1541e1e 100644 (file)
@@ -539,18 +539,16 @@ drm_fb_helper_remove_conflicting_framebuffers(struct apertures_struct *a,
 /**
  * drm_fb_helper_remove_conflicting_pci_framebuffers - remove firmware-configured framebuffers for PCI devices
  * @pdev: PCI device
- * @resource_id: index of PCI BAR configuring framebuffer memory
  * @name: requesting driver name
  *
  * This function removes framebuffer devices (eg. initialized by firmware)
- * using memory range configured for @pdev's BAR @resource_id.
+ * using memory range configured for any of @pdev's memory bars.
  *
  * The function assumes that PCI device with shadowed ROM drives a primary
  * display and so kicks out vga16fb.
  */
 static inline int
 drm_fb_helper_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
-                                                 int resource_id,
                                                  const char *name)
 {
        int ret = 0;