aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm_pci.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm_pci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
index 89d737ee551..9d318ce2c99 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
@@ -143,10 +143,6 @@ ahc_linux_pci_dev_remove(struct pci_dev *pdev)
143 struct ahc_softc *ahc = pci_get_drvdata(pdev); 143 struct ahc_softc *ahc = pci_get_drvdata(pdev);
144 u_long s; 144 u_long s;
145 145
146 ahc_list_lock(&s);
147 TAILQ_REMOVE(&ahc_tailq, ahc, links);
148 ahc_list_unlock(&s);
149
150 ahc_lock(ahc, &s); 146 ahc_lock(ahc, &s);
151 ahc_intr_enable(ahc, FALSE); 147 ahc_intr_enable(ahc, FALSE);
152 ahc_unlock(ahc, &s); 148 ahc_unlock(ahc, &s);
@@ -208,8 +204,7 @@ ahc_linux_pci_dev_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
208 return (-error); 204 return (-error);
209 } 205 }
210 pci_set_drvdata(pdev, ahc); 206 pci_set_drvdata(pdev, ahc);
211 if (aic7xxx_detect_complete) 207 ahc_linux_register_host(ahc, &aic7xxx_driver_template);
212 ahc_linux_register_host(ahc, &aic7xxx_driver_template);
213 return (0); 208 return (0);
214} 209}
215 210