patch-2.1.129 linux/drivers/misc/parport_init.c

Next file: linux/drivers/misc/parport_pc.c
Previous file: linux/drivers/misc/parport_ax.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.128/linux/drivers/misc/parport_init.c linux/drivers/misc/parport_init.c
@@ -98,13 +98,17 @@
 #ifdef MODULE
 int init_module(void)
 {
+#ifdef	CONFIG_PROC_FS
 	(void)parport_proc_init();	/* We can go on without it. */
+#endif
 	return 0;
 }
 
 void cleanup_module(void)
 {
+#ifdef	CONFIG_PROC_FS
 	parport_proc_cleanup();
+#endif
 }
 #else
 __initfunc(int parport_init(void))
@@ -115,7 +119,9 @@
 #ifdef CONFIG_PNP_PARPORT
 	parport_probe_hook = &parport_probe_one;
 #endif
+#ifdef	CONFIG_PROC_FS
 	parport_proc_init();
+#endif
 #ifdef CONFIG_PARPORT_PC
 	parport_pc_init(io, irq, dma);
 #endif
@@ -139,8 +145,10 @@
 EXPORT_SYMBOL(parport_enumerate);
 EXPORT_SYMBOL(parport_ieee1284_nibble_mode_ok);
 EXPORT_SYMBOL(parport_wait_peripheral);
+#ifdef	CONFIG_PROC_FS
 EXPORT_SYMBOL(parport_proc_register);
 EXPORT_SYMBOL(parport_proc_unregister);
+#endif
 EXPORT_SYMBOL(parport_probe_hook);
 EXPORT_SYMBOL(parport_parse_irqs);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov