]> git.neil.brown.name Git - history.git/commitdiff
Add missing .module initialisation to lasi700 and sim710
authorJames Bottomley <jejb@raven.il.steeleye.com>
Mon, 17 Nov 2003 07:14:38 +0000 (01:14 -0600)
committerJames Bottomley <jejb@mulgrave.(none)>
Mon, 17 Nov 2003 07:14:38 +0000 (01:14 -0600)
This bug prevents their module refcounts being increased by opending upper layer drivers
Thus they can be removed at any time and panic the system.

drivers/scsi/lasi700.c
drivers/scsi/sim710.c

index 2b7cac4da2093b874acb8cc0c6a36f086631d043..27f5664f926a9c92e358815b596e35dd7ee23ab4 100644 (file)
@@ -69,6 +69,7 @@ static Scsi_Host_Template lasi700_template = {
        .name           = "LASI SCSI 53c700",
        .proc_name      = "lasi700",
        .this_id        = 7,
+       .module         = THIS_MODULE,
 };
 MODULE_DEVICE_TABLE(parisc, lasi700_ids);
 
index 9a77866b770abbd49a3e44516732d7b1749ccbfa..2a833d3e57fc033eb7863f3dc97c0354ba6621db 100644 (file)
@@ -90,6 +90,7 @@ static Scsi_Host_Template sim710_driver_template = {
        .name                   = "LSI (Symbios) 710 MCA/EISA",
        .proc_name              = "sim710",
        .this_id                = 7,
+       .module                 = THIS_MODULE,
 };
 
 static __devinit int