diff options
-rw-r--r-- | drivers/scsi/cxlflash/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c index caa1d09dafec..3e3ccf16e7c2 100644 --- a/drivers/scsi/cxlflash/main.c +++ b/drivers/scsi/cxlflash/main.c | |||
@@ -354,7 +354,6 @@ static int cxlflash_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scp) | |||
354 | struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)host->hostdata; | 354 | struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)host->hostdata; |
355 | struct afu *afu = cfg->afu; | 355 | struct afu *afu = cfg->afu; |
356 | struct pci_dev *pdev = cfg->dev; | 356 | struct pci_dev *pdev = cfg->dev; |
357 | struct device *dev = &cfg->dev->dev; | ||
358 | struct afu_cmd *cmd; | 357 | struct afu_cmd *cmd; |
359 | u32 port_sel = scp->device->channel + 1; | 358 | u32 port_sel = scp->device->channel + 1; |
360 | int nseg, i, ncount; | 359 | int nseg, i, ncount; |
@@ -384,11 +383,13 @@ static int cxlflash_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scp) | |||
384 | 383 | ||
385 | switch (cfg->state) { | 384 | switch (cfg->state) { |
386 | case STATE_LIMBO: | 385 | case STATE_LIMBO: |
387 | dev_dbg_ratelimited(dev, "%s: device in limbo!\n", __func__); | 386 | dev_dbg_ratelimited(&cfg->dev->dev, "%s: device in limbo!\n", |
387 | __func__); | ||
388 | rc = SCSI_MLQUEUE_HOST_BUSY; | 388 | rc = SCSI_MLQUEUE_HOST_BUSY; |
389 | goto out; | 389 | goto out; |
390 | case STATE_FAILTERM: | 390 | case STATE_FAILTERM: |
391 | dev_dbg_ratelimited(dev, "%s: device has failed!\n", __func__); | 391 | dev_dbg_ratelimited(&cfg->dev->dev, "%s: device has failed!\n", |
392 | __func__); | ||
392 | scp->result = (DID_NO_CONNECT << 16); | 393 | scp->result = (DID_NO_CONNECT << 16); |
393 | scp->scsi_done(scp); | 394 | scp->scsi_done(scp); |
394 | rc = 0; | 395 | rc = 0; |