All of lore.kernel.org
 help / color / mirror / Atom feed
* missing license in drm_usb prevents module loading
@ 2012-04-14  5:02 shawn
  0 siblings, 0 replies; only message in thread
From: shawn @ 2012-04-14  5:02 UTC (permalink / raw)
  To: David Airlie; +Cc: dri-devel

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

I couldn't load the udl-drm driver with most things built as a module,
getting symbol resolution errors. Adding 

MODULE_LICENSE("GPL");

to drm_usb.c fixed this

-Shawn Landden

[-- Attachment #2: 0001-add-license-to-drm_udb.patch --]
[-- Type: text/x-patch, Size: 1039 bytes --]

>From c2db282071f4cc5fb730a13542982125d00144e0 Mon Sep 17 00:00:00 2001
From: Shawn Landden <shawnlandden@gmail.com>
Date: Wed, 4 Apr 2012 23:06:05 -0700
Subject: [PATCH] add license to drm_udb

---
 drivers/gpu/drm/drm_usb.c |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/drm_usb.c b/drivers/gpu/drm/drm_usb.c
index c8c83da..8bc7767 100644
--- a/drivers/gpu/drm/drm_usb.c
+++ b/drivers/gpu/drm/drm_usb.c
@@ -1,6 +1,15 @@
+/*
+ * Copyright (C) 2012 Red Hat
+ *
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License v2. See the file COPYING in the main directory of this archive for
+ * more details.
+ */
+
 #include "drmP.h"
 #include <linux/usb.h>
 #include <linux/export.h>
+#include <linux/module.h>
 
 int drm_get_usb_dev(struct usb_interface *interface,
 		    const struct usb_device_id *id,
@@ -114,3 +123,6 @@ void drm_usb_exit(struct drm_driver *driver,
 	usb_deregister(udriver);
 }
 EXPORT_SYMBOL(drm_usb_exit);
+
+MODULE_LICENSE("GPL");
+
-- 
1.7.9.5


[-- Attachment #3: 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 related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-14  5:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-14  5:02 missing license in drm_usb prevents module loading shawn

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.