patch-2.1.90 linux/drivers/char/misc.c
Next file: linux/drivers/char/n_tty.c
Previous file: linux/drivers/char/lp_m68k.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Tue Mar 10 14:43:13 1998
- Orig file:
v2.1.89/linux/drivers/char/misc.c
- Orig date:
Fri Jan 23 18:10:31 1998
diff -u --recursive --new-file v2.1.89/linux/drivers/char/misc.c linux/drivers/char/misc.c
@@ -26,6 +26,9 @@
* Idea by Jacques Gelinas <jack@solucorp.qc.ca>,
* adapted by Bjorn Ekwall <bj0rn@blox.se>
* corrected by Alan Cox <alan@lxorguk.ukuu.org.uk>
+ *
+ * Changes for kmod (from kerneld):
+ Cyrus Durgin <cider@speakeasy.org>
*/
#include <linux/config.h>
@@ -46,8 +49,8 @@
#include <linux/tty.h>
#include <linux/selection.h>
-#ifdef CONFIG_KERNELD
-#include <linux/kerneld.h>
+#ifdef CONFIG_KMOD
+#include <linux/kmod.h>
#endif
/*
@@ -107,7 +110,7 @@
while ((c != &misc_list) && (c->minor != minor))
c = c->next;
if (c == &misc_list) {
-#ifdef CONFIG_KERNELD
+#ifdef CONFIG_KMOD
char modname[20];
sprintf(modname, "char-major-%d-%d", MISC_MAJOR, minor);
request_module(modname);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov