Revert "drm: virtio: reinstate drm_virtio_set_busid()"
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 18 Oct 2016 06:19:36 +0000 (08:19 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Nov 2016 08:45:30 +0000 (09:45 +0100)
This reverts commit c2cbc38b9715bd8318062e600668fc30e5a3fbfa.

Commit "drm/virtio: fix busid regression" is a better fix.

drivers/gpu/drm/virtio/virtgpu_drm_bus.c
drivers/gpu/drm/virtio/virtgpu_drv.c
drivers/gpu/drm/virtio/virtgpu_drv.h

index 8534a99e1aea5fa1d23b974300fb3fabcd413700..3b97d50fd3926b325a3d97b5905311e8a5f24408 100644 (file)
 
 #include "virtgpu_drv.h"
 
-int drm_virtio_set_busid(struct drm_device *dev, struct drm_master *master)
-{
-       struct pci_dev *pdev = dev->pdev;
-
-       if (pdev) {
-               return drm_pci_set_busid(dev, master);
-       }
-       return 0;
-}
-
 static void virtio_pci_kick_out_firmware_fb(struct pci_dev *pci_dev)
 {
        struct apertures_struct *ap;
index 5820b7020ae5ab07dad986ddf5fb91ac17a0ca43..c13f70cfc46130946cd41e1846101160d426439b 100644 (file)
@@ -117,7 +117,6 @@ static const struct file_operations virtio_gpu_driver_fops = {
 
 static struct drm_driver driver = {
        .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER | DRIVER_ATOMIC,
-       .set_busid = drm_virtio_set_busid,
        .load = virtio_gpu_driver_load,
        .unload = virtio_gpu_driver_unload,
        .open = virtio_gpu_driver_open,
index ae59080d63d1f22f8835445019a30b619945f1dc..06ad9238044e03b4d196e290e01bb62094868a72 100644 (file)
@@ -49,7 +49,6 @@
 #define DRIVER_PATCHLEVEL 1
 
 /* virtgpu_drm_bus.c */
-int drm_virtio_set_busid(struct drm_device *dev, struct drm_master *master);
 int drm_virtio_init(struct drm_driver *driver, struct virtio_device *vdev);
 
 struct virtio_gpu_object {