patch-2.1.129 linux/drivers/misc/parport_pc.c
Next file: linux/drivers/net/3c59x.c
Previous file: linux/drivers/misc/parport_init.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sun Nov 15 09:52:26 1998
- Orig file:
v2.1.128/linux/drivers/misc/parport_pc.c
- Orig date:
Sun Nov 8 14:02:59 1998
diff -u --recursive --new-file v2.1.128/linux/drivers/misc/parport_pc.c linux/drivers/misc/parport_pc.c
@@ -34,6 +34,7 @@
* accomodate this.
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/delay.h>
@@ -755,9 +756,11 @@
}
#undef printmode
printk("]\n");
+#ifdef CONFIG_PROC_FS
if (probedirq != PARPORT_IRQ_NONE)
printk("%s: detected irq %d; use procfs to enable interrupt-driven operation.\n", p->name, probedirq);
parport_proc_register(p);
+#endif
p->flags |= PARPORT_FLAG_COMA;
/* Done probing. Now put the port into a sensible start-up state. */
@@ -821,7 +824,9 @@
if (p->modes & PARPORT_MODE_PCSPP) {
if (!(p->flags & PARPORT_FLAG_COMA))
parport_quiesce(p);
+#ifdef CONFIG_PROC_FS
parport_proc_unregister(p);
+#endif
parport_unregister_port(p);
}
p = tmp;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov