drm/vmwgfx: add MODULE_DEVICE_TABLE so vmwgfx loads at boot
authorDave Airlie <airlied@redhat.com>
Wed, 29 Aug 2012 01:40:51 +0000 (21:40 -0400)
committerDave Airlie <airlied@redhat.com>
Fri, 7 Sep 2012 03:25:34 +0000 (13:25 +1000)
This will cause udev to load vmwgfx instead of waiting for X
to do it.

Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

index 7f4f4eecf45a8d4377b1dc3207fbd74b3ae18710..33bfc20330094bbe7aa76e2e24cc70644f3a9052 100644 (file)
@@ -182,6 +182,7 @@ static struct pci_device_id vmw_pci_id_list[] = {
        {0x15ad, 0x0405, PCI_ANY_ID, PCI_ANY_ID, 0, 0, VMWGFX_CHIP_SVGAII},
        {0, 0, 0}
 };
+MODULE_DEVICE_TABLE(pci, vmw_pci_id_list);
 
 static int enable_fbdev = IS_ENABLED(CONFIG_DRM_VMWGFX_FBCON);