Commit 17ce0350 authored by James Bottomley's avatar James Bottomley

Fix SCSI data direction issues in aha1740 merger

and also remove no longer used .command entry
parent 3f576ab5
...@@ -275,7 +275,7 @@ static irqreturn_t aha1740_intr_handle(int irq, void *dev_id, ...@@ -275,7 +275,7 @@ static irqreturn_t aha1740_intr_handle(int irq, void *dev_id,
dma_unmap_sg (&edev->dev, dma_unmap_sg (&edev->dev,
(struct scatterlist *) SCtmp->request_buffer, (struct scatterlist *) SCtmp->request_buffer,
SCtmp->use_sg, SCtmp->use_sg,
scsi_to_dma_dir (SCtmp->sc_data_direction)); SCtmp->sc_data_direction);
} else { } else {
dma_unmap_single (&edev->dev, dma_unmap_single (&edev->dev,
sgptr->buf_dma_addr, sgptr->buf_dma_addr,
...@@ -433,7 +433,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *)) ...@@ -433,7 +433,7 @@ static int aha1740_queuecommand(Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
sgpnt = (struct scatterlist *) SCpnt->request_buffer; sgpnt = (struct scatterlist *) SCpnt->request_buffer;
cptr = sgptr->sg_chain; cptr = sgptr->sg_chain;
count = dma_map_sg (&host->edev->dev, sgpnt, SCpnt->use_sg, count = dma_map_sg (&host->edev->dev, sgpnt, SCpnt->use_sg,
scsi_to_dma_dir(SCpnt->sc_data_direction)); SCpnt->sc_data_direction);
for(i=0; i < count; i++) { for(i=0; i < count; i++) {
cptr[i].datalen = sg_dma_len (sgpnt + i); cptr[i].datalen = sg_dma_len (sgpnt + i);
cptr[i].dataptr = sg_dma_address (sgpnt + i); cptr[i].dataptr = sg_dma_address (sgpnt + i);
...@@ -570,7 +570,6 @@ static Scsi_Host_Template aha1740_template = { ...@@ -570,7 +570,6 @@ static Scsi_Host_Template aha1740_template = {
.proc_name = "aha1740", .proc_name = "aha1740",
.proc_info = aha1740_proc_info, .proc_info = aha1740_proc_info,
.name = "Adaptec 174x (EISA)", .name = "Adaptec 174x (EISA)",
.command = aha1740_command,
.queuecommand = aha1740_queuecommand, .queuecommand = aha1740_queuecommand,
.bios_param = aha1740_biosparam, .bios_param = aha1740_biosparam,
.can_queue = AHA1740_ECBS, .can_queue = AHA1740_ECBS,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment