summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_drv.c2
-rw-r--r--linux/drm_drv.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 61c6cdd23..bf8d76b8d 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -220,7 +220,9 @@ static char *drm_opts = NULL;
MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION( DRIVER_DESC );
MODULE_PARM( drm_opts, "s" );
+#ifdef MODULE_LICENSE
MODULE_LICENSE("GPL and additional rights");
+#endif
static int DRM(setup)( drm_device_t *dev )
{
diff --git a/linux/drm_drv.h b/linux/drm_drv.h
index 61c6cdd23..bf8d76b8d 100644
--- a/linux/drm_drv.h
+++ b/linux/drm_drv.h
@@ -220,7 +220,9 @@ static char *drm_opts = NULL;
MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION( DRIVER_DESC );
MODULE_PARM( drm_opts, "s" );
+#ifdef MODULE_LICENSE
MODULE_LICENSE("GPL and additional rights");
+#endif
static int DRM(setup)( drm_device_t *dev )
{