aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/aic7xxx/aic7770_osm.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-10-03 08:07:10 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-03 08:07:10 -0700
commit7d6322b4659216fff76619d3b4088eecbdfa46d5 (patch)
tree19aa385d903fcc0f2b5d6d978dc83a87c2eca95f /drivers/scsi/aic7xxx/aic7770_osm.c
parentd6b9acc0c6c4a7c5d484d15271a5274656d0864f (diff)
parent51c928c34fa7cff38df584ad01de988805877dba (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7770_osm.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7770_osm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/aic7xxx/aic7770_osm.c b/drivers/scsi/aic7xxx/aic7770_osm.c
index 70c5fb59c9e..d754b326786 100644
--- a/drivers/scsi/aic7xxx/aic7770_osm.c
+++ b/drivers/scsi/aic7xxx/aic7770_osm.c
@@ -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);