summaryrefslogtreecommitdiff
path: root/linux/radeon_drv.c
diff options
context:
space:
mode:
authorJeff Hartmann <jhartmann@valinux.com>2001-07-23 20:25:38 +0000
committerJeff Hartmann <jhartmann@valinux.com>2001-07-23 20:25:38 +0000
commit84a5e7108773d5a5ff7242e1460c98e3acb178a8 (patch)
tree62e3c17333ae2779706f5b9823a3be9c1de9de9d /linux/radeon_drv.c
parent5e8ba79eb6aabd85f52de43fcf30722268857f60 (diff)
Fixes that allow the modules to be built into the kernel
Diffstat (limited to 'linux/radeon_drv.c')
-rw-r--r--linux/radeon_drv.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/linux/radeon_drv.c b/linux/radeon_drv.c
index d7632667..49599bc8 100644
--- a/linux/radeon_drv.c
+++ b/linux/radeon_drv.c
@@ -78,6 +78,26 @@
#include "drm_dma.h"
#include "drm_drawable.h"
#include "drm_drv.h"
+
+#ifndef MODULE
+/* DRM(options) is called by the kernel to parse command-line options
+ * passed via the boot-loader (e.g., LILO). It calls the insmod option
+ * routine, drm_parse_drm.
+ */
+
+/* JH- We have to hand expand the string ourselves because of the cpp. If
+ * anyone can think of a way that we can fit into the __setup macro without
+ * changing it, then please send the solution my way.
+ */
+static int __init radeon_options( char *str )
+{
+ DRM(parse_options)( str );
+ return 1;
+}
+
+__setup( DRIVER_NAME "=", radeon_options );
+#endif
+
#include "drm_fops.h"
#include "drm_init.h"
#include "drm_ioctl.h"