All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/via: Add MODULE_DEVICE_TABLE
@ 2015-03-29 17:39 Jarkko Nikula
  2015-03-29 23:01 ` Dave Airlie
  0 siblings, 1 reply; 2+ messages in thread
From: Jarkko Nikula @ 2015-03-29 17:39 UTC (permalink / raw)
  To: dri-devel; +Cc: Jarkko Nikula

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

Signed-off-by: Jarkko Nikula <jarkko.nikula@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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/via: Add MODULE_DEVICE_TABLE
  2015-03-29 17:39 [PATCH] drm/via: Add MODULE_DEVICE_TABLE Jarkko Nikula
@ 2015-03-29 23:01 ` Dave Airlie
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Airlie @ 2015-03-29 23:01 UTC (permalink / raw)
  To: Jarkko Nikula; +Cc: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]

On 30 Mar 2015 5:58 am, "Jarkko Nikula" <jarkko.nikula@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@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@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

[-- Attachment #1.2: Type: text/html, Size: 1654 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-29 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-29 17:39 [PATCH] drm/via: Add MODULE_DEVICE_TABLE Jarkko Nikula
2015-03-29 23:01 ` Dave Airlie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.