diff options
author | Varun Prakash <varun@chelsio.com> | 2018-12-19 15:42:50 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-12-19 21:45:04 -0500 |
commit | 9934613edcb40b92a216122876cd3b7e76d08390 (patch) | |
tree | a35b6b7fe819cf62b3f8d1440b1e8d8fd4dfd0dd /drivers/scsi/csiostor | |
parent | 34a3492171cc87d1c2a9e7c0fbf6bf4a0f4d57b0 (diff) | |
download | linux-9934613edcb40b92a216122876cd3b7e76d08390.tar.gz linux-9934613edcb40b92a216122876cd3b7e76d08390.tar.bz2 linux-9934613edcb40b92a216122876cd3b7e76d08390.zip |
scsi: csiostor: fix incorrect dma device in case of vport
In case of ->vport_create() call scsi_add_host_with_dma() instead of
scsi_add_host() to pass correct dma device.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/csiostor')
-rw-r--r-- | drivers/scsi/csiostor/csio_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index a1bdf93e5f69..cf629380a981 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c @@ -645,7 +645,7 @@ csio_shost_init(struct csio_hw *hw, struct device *dev, if (csio_lnode_init(ln, hw, pln)) goto err_shost_put; - if (scsi_add_host(shost, dev)) + if (scsi_add_host_with_dma(shost, dev, &hw->pdev->dev)) goto err_lnode_exit; return ln; |