patch-2.3.99-pre3 linux/drivers/block/paride/paride.c

Next file: linux/drivers/cdrom/cm206.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/block/paride/paride.c linux/drivers/block/paride/paride.c
@@ -20,6 +20,7 @@
 
 #include <linux/module.h>
 #include <linux/config.h>
+#include <linux/kmod.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/ioport.h>
@@ -335,6 +336,9 @@
 	int lpts[7] = {0x3bc,0x378,0x278,0x268,0x27c,0x26c,0};
 
 	s = protocol; e = s+1;
+
+	if (!protocols[0])
+		request_module ("paride_protocol");
 
 	if (autoprobe) {
 		s = 0; 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)