[PATCH] drm/via: Add MODULE_DEVICE_TABLE
Dave Airlie
airlied at gmail.com
Sun Mar 29 16:01:07 PDT 2015
On 30 Mar 2015 5:58 am, "Jarkko Nikula" <jarkko.nikula at bitmer.com> 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 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
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150330/6a65d289/attachment.html>
More information about the dri-devel
mailing list