patch-2.1.100 linux/drivers/scsi/ppa.c

Next file: linux/drivers/scsi/scsi.c
Previous file: linux/drivers/scsi/ide-scsi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/scsi/ppa.c linux/drivers/scsi/ppa.c
@@ -50,13 +50,6 @@
 #include  "ppa.h"
 #include <linux/parport.h>
 
-#ifdef CONFIG_KMOD
-#include  <linux/kmod.h>
-#ifndef PARPORT_MODULES
-#define PARPORT_MODULES "parport_pc"
-#endif
-#endif
-
 #define NO_HOSTS 4
 static ppa_struct ppa_hosts[NO_HOSTS] =
 {PPA_EMPTY, PPA_EMPTY, PPA_EMPTY, PPA_EMPTY};
@@ -98,7 +91,6 @@
 	return 1;
     }
 
-    PPA_BASE(host_no) = ppa_hosts[host_no].dev->port->base;
     if (ppa_hosts[host_no].cur_cmd)
 	ppa_hosts[host_no].cur_cmd->SCp.phase++;
     return 0;
@@ -130,12 +122,8 @@
     nhosts = 0;
     try_again = 0;
 
-#ifdef CONFIG_KMOD
-    if (!pb) {
-	request_module(PARPORT_MODULES);
+    if (!pb)
 	pb = parport_enumerate();
-    }
-#endif
 
     if (!pb) {
 	printk("ppa: parport reports no devices.\n");
@@ -155,7 +143,7 @@
 	if (ppa_pb_claim(i))
 	    while (ppa_hosts[i].p_busy)
 		schedule(); /* Whe can safe schedule() here */
-	ppb = PPA_BASE(i);
+	ppb = PPA_BASE(i) = ppa_hosts[i].dev->port->base;
 	w_ctr(ppb, 0x0c);
 	modes = ppa_hosts[i].dev->port->modes;
 

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