On 30 Mar 2015 5:58 am, "Jarkko Nikula" <jarkko.nikula@xxxxxxxxxx> wrote:
>
> Via DRM driver does not get autoloaded due missing MODULE_DEVICE_TABLE when
> built as a module.
>
NAK, this isn't a kms driver, so the X server is required to load it when it needs it,
Dave.
> Signed-off-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxx>
> ---
> 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
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel