summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-11-01 19:24:14 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-11-01 19:24:14 +0000
commitbf88ed5817fbe86cfd27153f490cd4a7cbc08db6 (patch)
tree6cee947e2010bb2f2f2a1301788ee7c4814532f4
parent7d829fda111f41b1398b1ff5d4cf8361c7c26604 (diff)
use #ifdef MODULE_LICENSE/#endif to compile with kernel 2.4.5 (and maybe
others)
-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 1ae3ec25..23568288 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 1ae3ec25..23568288 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 )
{