diff options
Diffstat (limited to 'drivers/ata/pdc_adma.c')
-rw-r--r-- | drivers/ata/pdc_adma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index bd4c2a3c88d7..8e1b7e9c0ae4 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c | |||
@@ -321,8 +321,9 @@ static int adma_fill_sg(struct ata_queued_cmd *qc) | |||
321 | u8 *buf = pp->pkt, *last_buf = NULL; | 321 | u8 *buf = pp->pkt, *last_buf = NULL; |
322 | int i = (2 + buf[3]) * 8; | 322 | int i = (2 + buf[3]) * 8; |
323 | u8 pFLAGS = pORD | ((qc->tf.flags & ATA_TFLAG_WRITE) ? pDIRO : 0); | 323 | u8 pFLAGS = pORD | ((qc->tf.flags & ATA_TFLAG_WRITE) ? pDIRO : 0); |
324 | unsigned int si; | ||
324 | 325 | ||
325 | ata_for_each_sg(sg, qc) { | 326 | for_each_sg(qc->sg, sg, qc->n_elem, si) { |
326 | u32 addr; | 327 | u32 addr; |
327 | u32 len; | 328 | u32 len; |
328 | 329 | ||
@@ -455,7 +456,7 @@ static unsigned int adma_qc_issue(struct ata_queued_cmd *qc) | |||
455 | adma_packet_start(qc); | 456 | adma_packet_start(qc); |
456 | return 0; | 457 | return 0; |
457 | 458 | ||
458 | case ATA_PROT_ATAPI_DMA: | 459 | case ATAPI_PROT_DMA: |
459 | BUG(); | 460 | BUG(); |
460 | break; | 461 | break; |
461 | 462 | ||