Patchwork [Precise,SRU] UBUNTU: SAUCE: drm/vmwgfx: add MODULE_DEVICE_TABLE so vmwgfx loads at boot

login
register
mail settings
Submitter Tim Gardner
Date Sept. 6, 2012, 12:54 p.m.
Message ID <1346936080-96890-1-git-send-email-tim.gardner@canonical.com>
Download mbox | patch
Permalink /patch/182174/
State New
Headers show

Comments

Tim Gardner - Sept. 6, 2012, 12:54 p.m.
From: Dave Airlie <airlied@gmail.com>

BugLink: http://bugs.launchpad.net/bugs/1039157

From: Dave Airlie <airlied@redhat.com>

This will cause udev to load vmwgfx instead of waiting for X
to do it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |    1 +
 1 file changed, 1 insertion(+)
Tim Gardner - Sept. 6, 2012, 1:01 p.m.
This patch also applies to Oneiric.
Herton Ronaldo Krzesinski - Sept. 6, 2012, 1:40 p.m.

Seth Forshee - Sept. 6, 2012, 1:44 p.m.
On Thu, Sep 06, 2012 at 06:54:40AM -0600, Tim Gardner wrote:
> From: Dave Airlie <airlied@gmail.com>
> 
> BugLink: http://bugs.launchpad.net/bugs/1039157
> 
> From: Dave Airlie <airlied@redhat.com>
> 
> This will cause udev to load vmwgfx instead of waiting for X
> to do it.
> 
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
> ---
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> index dff8fc7..6cea3a8 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> @@ -178,6 +178,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;
>  
> -- 
> 1.7.9.5
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Tim Gardner - Sept. 6, 2012, 3:29 p.m.

Patch

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index dff8fc7..6cea3a8 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -178,6 +178,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;