Skip to contentSkip to conversation

missing license in drm_usb prevents module loading

PATCH shawn 1 participant 1 message Apr 14, 2012

Subsystems (2)
lore
Share & tools
lore

shawn

author
#0 lore raw

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

Quoted 1 line

From c2db282071f4cc5fb730a13542982125d00144e0 Mon Sep 17 00:00:00 2001

From: Shawn Landden <[email protected]>
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(+)
drivers/gpu/drm/drm_usb.c +12 -0
index c8c83da..8bc7767 100644
@@ -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");
+
Signature · 1 line
1.7.9.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel