Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9563
b: refs/heads/master
c: 97af50f
h: refs/heads/master
i:
  9561: 7863ca0
  9559: a9b27db
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed Oct 2, 2005
1 parent 0eef7c9 commit 50eee52
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e70592fcd87c90e9e98090d66cb79f39d740d4a
refs/heads/master: 97af50f60ff1202b0dd9ce481d4cf98c6a578bec
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/aic7xxx/aic7770_osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ aic7770_remove(struct device *dev)
struct ahc_softc *ahc = dev_get_drvdata(dev);
u_long s;

if (ahc->platform_data && ahc->platform_data->host)
scsi_remove_host(ahc->platform_data->host);

ahc_lock(ahc, &s);
ahc_intr_enable(ahc, FALSE);
ahc_unlock(ahc, &s);
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/scsi/aic7xxx/aic79xx_osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1192,11 +1192,6 @@ ahd_platform_free(struct ahd_softc *ahd)
int i, j;

if (ahd->platform_data != NULL) {
if (ahd->platform_data->host != NULL) {
scsi_remove_host(ahd->platform_data->host);
scsi_host_put(ahd->platform_data->host);
}

/* destroy all of the device and target objects */
for (i = 0; i < AHD_NUM_TARGETS; i++) {
starget = ahd->platform_data->starget[i];
Expand Down Expand Up @@ -1226,6 +1221,9 @@ ahd_platform_free(struct ahd_softc *ahd)
release_mem_region(ahd->platform_data->mem_busaddr,
0x1000);
}
if (ahd->platform_data->host)
scsi_host_put(ahd->platform_data->host);

free(ahd->platform_data, M_DEVBUF);
}
}
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/aic7xxx/aic79xx_osm_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ ahd_linux_pci_dev_remove(struct pci_dev *pdev)
struct ahd_softc *ahd = pci_get_drvdata(pdev);
u_long s;

if (ahd->platform_data && ahd->platform_data->host)
scsi_remove_host(ahd->platform_data->host);

ahd_lock(ahd, &s);
ahd_intr_enable(ahd, FALSE);
ahd_unlock(ahd, &s);
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,11 +1209,6 @@ ahc_platform_free(struct ahc_softc *ahc)
int i, j;

if (ahc->platform_data != NULL) {
if (ahc->platform_data->host != NULL) {
scsi_remove_host(ahc->platform_data->host);
scsi_host_put(ahc->platform_data->host);
}

/* destroy all of the device and target objects */
for (i = 0; i < AHC_NUM_TARGETS; i++) {
starget = ahc->platform_data->starget[i];
Expand Down Expand Up @@ -1242,6 +1237,9 @@ ahc_platform_free(struct ahc_softc *ahc)
0x1000);
}

if (ahc->platform_data->host)
scsi_host_put(ahc->platform_data->host);

free(ahc->platform_data, M_DEVBUF);
}
}
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ ahc_linux_pci_dev_remove(struct pci_dev *pdev)
struct ahc_softc *ahc = pci_get_drvdata(pdev);
u_long s;

if (ahc->platform_data && ahc->platform_data->host)
scsi_remove_host(ahc->platform_data->host);

ahc_lock(ahc, &s);
ahc_intr_enable(ahc, FALSE);
ahc_unlock(ahc, &s);
Expand Down

0 comments on commit 50eee52

Please sign in to comment.