[PATCH] aic79xx small cleanup After Hannes Reinecke update to the aic79xx bus reset handling, we could now remove ahd_freeze/release_simq like in the aic7xxx driver. Signed-off-by: Emmanuel Fusté <emmanuel.fuste@xxxxxxxxxxx> --- Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34 ?/mn) ; tél : 08 92 68 13 50 (0,34?/mn)
[PATCH] aic79xx small cleanup After Hannes Reinecke update to the aic79xx bus reset handling, we could now remove ahd_freeze/release_simq like in the aic7xxx driver. Signed-off-by: Emmanuel Fuste <emmanuel.fuste@xxxxxxxxxxx> --- linux-source-2.6.16-orig1/drivers/scsi/aic7xxx/aic79xx_osm.c 2006-04-03 10:24:00.000000000 +0200 +++ linux-source-2.6.16/drivers/scsi/aic7xxx/aic79xx_osm.c 2006-04-03 10:43:34.000000000 +0200 @@ -1225,9 +1225,9 @@ ahd_linux_initialize_scsi_bus(struct ahd ahd_unlock(ahd, &s); /* Give the bus some time to recover */ if ((ahd->flags & AHD_RESET_BUS_A) != 0) { - ahd_freeze_simq(ahd); + scsi_block_requests(ahd->platform_data->host); msleep(AIC79XX_RESET_DELAY); - ahd_release_simq(ahd); + scsi_unblock_requests(ahd->platform_data->host); } } @@ -2081,18 +2081,6 @@ ahd_linux_queue_cmd_complete(struct ahd_ cmd->scsi_done(cmd); } -void -ahd_freeze_simq(struct ahd_softc *ahd) -{ - scsi_block_requests(ahd->platform_data->host); -} - -void -ahd_release_simq(struct ahd_softc *ahd) -{ - scsi_unblock_requests(ahd->platform_data->host); -} - static int ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd) { --- linux-source-2.6.16-orig1/drivers/scsi/aic7xxx/aic79xx_osm.h 2006-04-03 10:24:00.000000000 +0200 +++ linux-source-2.6.16/drivers/scsi/aic7xxx/aic79xx_osm.h 2006-04-03 10:41:45.000000000 +0200 @@ -853,8 +853,6 @@ int ahd_platform_alloc(struct ahd_softc void ahd_platform_free(struct ahd_softc *ahd); void ahd_platform_init(struct ahd_softc *ahd); void ahd_platform_freeze_devq(struct ahd_softc *ahd, struct scb *scb); -void ahd_freeze_simq(struct ahd_softc *ahd); -void ahd_release_simq(struct ahd_softc *ahd); static __inline void ahd_freeze_scb(struct scb *scb)