diff options
Diffstat (limited to 'drivers/scsi/sym53c8xx_2')
-rw-r--r-- | drivers/scsi/sym53c8xx_2/sym_glue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index 9c83b4d39a26..ee081320e1f1 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c | |||
@@ -156,7 +156,7 @@ static void __unmap_scsi_data(struct pci_dev *pdev, struct scsi_cmnd *cmd) | |||
156 | 156 | ||
157 | switch(SYM_UCMD_PTR(cmd)->data_mapped) { | 157 | switch(SYM_UCMD_PTR(cmd)->data_mapped) { |
158 | case 2: | 158 | case 2: |
159 | pci_unmap_sg(pdev, cmd->buffer, cmd->use_sg, dma_dir); | 159 | pci_unmap_sg(pdev, cmd->request_buffer, cmd->use_sg, dma_dir); |
160 | break; | 160 | break; |
161 | case 1: | 161 | case 1: |
162 | pci_unmap_single(pdev, SYM_UCMD_PTR(cmd)->data_mapping, | 162 | pci_unmap_single(pdev, SYM_UCMD_PTR(cmd)->data_mapping, |
@@ -186,7 +186,7 @@ static int __map_scsi_sg_data(struct pci_dev *pdev, struct scsi_cmnd *cmd) | |||
186 | int use_sg; | 186 | int use_sg; |
187 | int dma_dir = cmd->sc_data_direction; | 187 | int dma_dir = cmd->sc_data_direction; |
188 | 188 | ||
189 | use_sg = pci_map_sg(pdev, cmd->buffer, cmd->use_sg, dma_dir); | 189 | use_sg = pci_map_sg(pdev, cmd->request_buffer, cmd->use_sg, dma_dir); |
190 | if (use_sg > 0) { | 190 | if (use_sg > 0) { |
191 | SYM_UCMD_PTR(cmd)->data_mapped = 2; | 191 | SYM_UCMD_PTR(cmd)->data_mapped = 2; |
192 | SYM_UCMD_PTR(cmd)->data_mapping = use_sg; | 192 | SYM_UCMD_PTR(cmd)->data_mapping = use_sg; |
@@ -376,7 +376,7 @@ static int sym_scatter(struct sym_hcb *np, struct sym_ccb *cp, struct scsi_cmnd | |||
376 | if (!use_sg) | 376 | if (!use_sg) |
377 | segment = sym_scatter_no_sglist(np, cp, cmd); | 377 | segment = sym_scatter_no_sglist(np, cp, cmd); |
378 | else if ((use_sg = map_scsi_sg_data(np, cmd)) > 0) { | 378 | else if ((use_sg = map_scsi_sg_data(np, cmd)) > 0) { |
379 | struct scatterlist *scatter = (struct scatterlist *)cmd->buffer; | 379 | struct scatterlist *scatter = (struct scatterlist *)cmd->request_buffer; |
380 | struct sym_tcb *tp = &np->target[cp->target]; | 380 | struct sym_tcb *tp = &np->target[cp->target]; |
381 | struct sym_tblmove *data; | 381 | struct sym_tblmove *data; |
382 | 382 | ||