aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha152x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r--drivers/scsi/aha152x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index d30a30786dd..f08e71e0205 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -907,9 +907,10 @@ out_host_put:
907 907
908void aha152x_release(struct Scsi_Host *shpnt) 908void aha152x_release(struct Scsi_Host *shpnt)
909{ 909{
910 if(!shpnt) 910 if (!shpnt)
911 return; 911 return;
912 912
913 scsi_remove_host(shpnt);
913 if (shpnt->irq) 914 if (shpnt->irq)
914 free_irq(shpnt->irq, shpnt); 915 free_irq(shpnt->irq, shpnt);
915 916
@@ -923,7 +924,6 @@ void aha152x_release(struct Scsi_Host *shpnt)
923 pnp_device_detach(HOSTDATA(shpnt)->pnpdev); 924 pnp_device_detach(HOSTDATA(shpnt)->pnpdev);
924#endif 925#endif
925 926
926 scsi_remove_host(shpnt);
927 list_del(&HOSTDATA(shpnt)->host_list); 927 list_del(&HOSTDATA(shpnt)->host_list);
928 scsi_host_put(shpnt); 928 scsi_host_put(shpnt);
929} 929}