[PATCH] drm/via: Add MODULE_DEVICE_TABLE

Jarkko Nikula jarkko.nikula at bitmer.com
Sun Mar 29 10:39:00 PDT 2015


Via DRM driver does not get autoloaded due missing MODULE_DEVICE_TABLE when
built as a module.

Signed-off-by: Jarkko Nikula <jarkko.nikula at bitmer.com>
---
 drivers/gpu/drm/via/via_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c
index ed8aa8ff861a..f654c6f9d97f 100644
--- a/drivers/gpu/drm/via/via_drv.c
+++ b/drivers/gpu/drm/via/via_drv.c
@@ -56,6 +56,7 @@ static void via_driver_postclose(struct drm_device *dev, struct drm_file *file)
 static struct pci_device_id pciidlist[] = {
 	viadrv_PCI_IDS
 };
+MODULE_DEVICE_TABLE(pci, pciidlist);
 
 static const struct file_operations via_driver_fops = {
 	.owner = THIS_MODULE,
-- 
2.1.4



More information about the dri-devel mailing list