aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mac53c94.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/mac53c94.c')
-rw-r--r--drivers/scsi/mac53c94.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c
index e5cd8d8d4ce7..0adb2e015597 100644
--- a/drivers/scsi/mac53c94.c
+++ b/drivers/scsi/mac53c94.c
@@ -382,16 +382,16 @@ static void set_dma_cmds(struct fsc_state *state, struct scsi_cmnd *cmd)
382 if (dma_len > 0xffff) 382 if (dma_len > 0xffff)
383 panic("mac53c94: scatterlist element >= 64k"); 383 panic("mac53c94: scatterlist element >= 64k");
384 total += dma_len; 384 total += dma_len;
385 st_le16(&dcmds->req_count, dma_len); 385 dcmds->req_count = cpu_to_le16(dma_len);
386 st_le16(&dcmds->command, dma_cmd); 386 dcmds->command = cpu_to_le16(dma_cmd);
387 st_le32(&dcmds->phy_addr, dma_addr); 387 dcmds->phy_addr = cpu_to_le32(dma_addr);
388 dcmds->xfer_status = 0; 388 dcmds->xfer_status = 0;
389 ++dcmds; 389 ++dcmds;
390 } 390 }
391 391
392 dma_cmd += OUTPUT_LAST - OUTPUT_MORE; 392 dma_cmd += OUTPUT_LAST - OUTPUT_MORE;
393 st_le16(&dcmds[-1].command, dma_cmd); 393 dcmds[-1].command = cpu_to_le16(dma_cmd);
394 st_le16(&dcmds->command, DBDMA_STOP); 394 dcmds->command = cpu_to_le16(DBDMA_STOP);
395 cmd->SCp.this_residual = total; 395 cmd->SCp.this_residual = total;
396} 396}
397 397