summaryrefslogtreecommitdiff
path: root/linux-core/drm_drv.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-10-15 02:59:35 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-10-15 02:59:35 +0000
commitfa50e2b5132b84353ae964a39c3b10ea270d15e8 (patch)
tree8b987d4039b84b424e5d55c6b32b74d99cc00695 /linux-core/drm_drv.c
parent5e8838fd115879174567c4c2db8ad25331619994 (diff)
Switch linux-core over to 2.6 parameter model to enable debug use
drm_debug=1
Diffstat (limited to 'linux-core/drm_drv.c')
-rw-r--r--linux-core/drm_drv.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 79c0229c..55289e16 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -55,25 +55,6 @@
#include "drm_core.h"
static void __exit drm_cleanup(drm_device_t * dev);
-
-#ifndef MODULE
-/** Use an additional macro to avoid preprocessor troubles */
-#define DRM_OPTIONS_FUNC drm_options
-/**
- * Called by the kernel to parse command-line options passed via the
- * boot-loader (e.g., LILO). It calls the insmod option routine,
- * parse_options().
- */
-static int __init drm_options(char *str)
-{
- drm_parse_options(str);
- return 1;
-}
-
-__setup(DRIVER_NAME "=", DRM_OPTIONS_FUNC);
-#undef DRM_OPTIONS_FUNC
-#endif
-
int drm_fb_loaded = 0;
/** Ioctl table */
@@ -289,11 +270,6 @@ void __exit drm_cleanup_pci(struct pci_dev *pdev)
}
EXPORT_SYMBOL(drm_cleanup_pci);
-#ifdef MODULE
-static char *drm_opts = NULL;
-#endif
-MODULE_PARM(drm_opts, "s");
-
/**
* Module initialization. Called via init_module at module load time, or via
* linux/init/main.c (this is not currently supported).
@@ -316,10 +292,6 @@ int drm_init(struct drm_driver *driver,
DRM_DEBUG("\n");
-#ifdef MODULE
- drm_parse_options(drm_opts);
-#endif
-
drm_mem_init();
for (i = 0; (pciidlist[i].vendor != 0) && !drm_fb_loaded; i++) {