Skip to content

Commit f1a28ee

Browse files
thomashvmwairlied
authored andcommitted
vmwgfx: Remove initialisation of dev::devname
The removed code causes oopses with newer drms on master drop. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 7a1c2f6 commit f1a28ee

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎drivers/gpu/drm/vmwgfx/vmwgfx_drv.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ static struct pci_device_id vmw_pci_id_list[] = {
148148
{0, 0, 0}
149149
};
150150

151-
static char *vmw_devname = "vmwgfx";
152151
static int enable_fbdev;
153152

154153
static int vmw_probe(struct pci_dev *, const struct pci_device_id *);
@@ -407,9 +406,6 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset)
407406
"running the device in SVGA mode yet.\n");
408407
}
409408

410-
if (!dev->devname)
411-
dev->devname = vmw_devname;
412-
413409
if (dev_priv->capabilities & SVGA_CAP_IRQMASK) {
414410
ret = drm_irq_install(dev);
415411
if (unlikely(ret != 0)) {
@@ -466,8 +462,6 @@ static int vmw_driver_unload(struct drm_device *dev)
466462

467463
if (dev_priv->capabilities & SVGA_CAP_IRQMASK)
468464
drm_irq_uninstall(dev_priv->dev);
469-
if (dev->devname == vmw_devname)
470-
dev->devname = NULL;
471465
if (dev_priv->enable_fb) {
472466
vmw_fb_close(dev_priv);
473467
vmw_kms_restore_vga(dev_priv);

0 commit comments

Comments
 (0)