diff options
Diffstat (limited to '0003-media-usbvision-remove-unneeded-DRIVER_LICENSE-defin.patch')
| -rw-r--r-- | 0003-media-usbvision-remove-unneeded-DRIVER_LICENSE-defin.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/0003-media-usbvision-remove-unneeded-DRIVER_LICENSE-defin.patch b/0003-media-usbvision-remove-unneeded-DRIVER_LICENSE-defin.patch new file mode 100644 index 00000000000000..4a6f3bd2f1f752 --- /dev/null +++ b/0003-media-usbvision-remove-unneeded-DRIVER_LICENSE-defin.patch @@ -0,0 +1,43 @@ +From 1339d003b803bdd4fc355176ad092ac58b7911b0 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +Date: Fri, 17 Nov 2017 15:05:42 +0100 +Subject: [PATCH 3/7] media: usbvision: remove unneeded DRIVER_LICENSE #define + +There is no need to #define the license of the driver, just put it in +the MODULE_LICENSE() line directly as a text string. + +This allows tools that check that the module license matches the source +code license to work properly, as there is no need to unwind the +unneeded dereference. + +Cc: Hans Verkuil <hverkuil@xs4all.nl> +Cc: Mauro Carvalho Chehab <mchehab@kernel.org> +Cc: Markus Elfring <elfring@users.sourceforge.net> +Cc: Johan Hovold <johan@kernel.org> +Cc: Davidlohr Bueso <dave@stgolabs.net> +Cc: Sakari Ailus <sakari.ailus@linux.intel.com> +Reported-by: Philippe Ombredanne <pombredanne@nexb.com> +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> +--- + drivers/media/usb/usbvision/usbvision-video.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- a/drivers/media/usb/usbvision/usbvision-video.c ++++ b/drivers/media/usb/usbvision/usbvision-video.c +@@ -72,7 +72,6 @@ + #define DRIVER_NAME "usbvision" + #define DRIVER_ALIAS "USBVision" + #define DRIVER_DESC "USBVision USB Video Device Driver for Linux" +-#define DRIVER_LICENSE "GPL" + #define USBVISION_VERSION_STRING "0.9.11" + + #define ENABLE_HEXDUMP 0 /* Enable if you need it */ +@@ -141,7 +140,7 @@ MODULE_PARM_DESC(radio_nr, "Set radio de + /* Misc stuff */ + MODULE_AUTHOR(DRIVER_AUTHOR); + MODULE_DESCRIPTION(DRIVER_DESC); +-MODULE_LICENSE(DRIVER_LICENSE); ++MODULE_LICENSE("GPL"); + MODULE_VERSION(USBVISION_VERSION_STRING); + MODULE_ALIAS(DRIVER_ALIAS); + |
