diff options
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_sas.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_sas.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index 9589fc941a8b..50837933a1e5 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c | |||
@@ -256,12 +256,14 @@ void pm8001_scan_start(struct Scsi_Host *shost) | |||
256 | 256 | ||
257 | int pm8001_scan_finished(struct Scsi_Host *shost, unsigned long time) | 257 | int pm8001_scan_finished(struct Scsi_Host *shost, unsigned long time) |
258 | { | 258 | { |
259 | struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); | ||
260 | |||
259 | /* give the phy enabling interrupt event time to come in (1s | 261 | /* give the phy enabling interrupt event time to come in (1s |
260 | * is empirically about all it takes) */ | 262 | * is empirically about all it takes) */ |
261 | if (time < HZ) | 263 | if (time < HZ) |
262 | return 0; | 264 | return 0; |
263 | /* Wait for discovery to finish */ | 265 | /* Wait for discovery to finish */ |
264 | scsi_flush_work(shost); | 266 | sas_drain_work(ha); |
265 | return 1; | 267 | return 1; |
266 | } | 268 | } |
267 | 269 | ||