patch-2.2.0-pre8 linux/drivers/char/misc.c
Next file: linux/drivers/char/msp3400.c
Previous file: linux/drivers/char/lp_m68k.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Jan 15 17:46:27 1999
- Orig file:
v2.2.0-pre7/linux/drivers/char/misc.c
- Orig date:
Mon Jan 4 15:08:17 1999
diff -u --recursive --new-file v2.2.0-pre7/linux/drivers/char/misc.c linux/drivers/char/misc.c
@@ -49,9 +49,7 @@
#include <linux/tty.h>
#include <linux/selection.h>
-#ifdef CONFIG_KMOD
#include <linux/kmod.h>
-#endif
/*
* Head entry for the doubly linked miscdevice list
@@ -108,7 +106,6 @@
while ((c != &misc_list) && (c->minor != minor))
c = c->next;
if (c == &misc_list) {
-#ifdef CONFIG_KMOD
char modname[20];
sprintf(modname, "char-major-%d-%d", MISC_MAJOR, minor);
request_module(modname);
@@ -116,7 +113,6 @@
while ((c != &misc_list) && (c->minor != minor))
c = c->next;
if (c == &misc_list)
-#endif
return -ENODEV;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov