aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_sx4.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2012-10-25 13:19:12 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-11-28 12:39:44 -0500
commit7c26deab5abfb86f6c71f1bbf685072cbc0e5fea (patch)
tree6c92eb33c4b8388146fee108256e61c09de25995 /drivers/ata/sata_sx4.c
parent10083d7ac038da3062e6a496d883728afb388892 (diff)
sata_sx4: pdc20621_{ata|host}_sg() do not need 'tf' parameter
... because those functions don't use this parameter. While at it, correctly align 'total_len' parameter. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_sx4.c')
-rw-r--r--drivers/ata/sata_sx4.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c
index 122605593166..7b7127a58f51 100644
--- a/drivers/ata/sata_sx4.c
+++ b/drivers/ata/sata_sx4.c
@@ -315,9 +315,8 @@ static int pdc_port_start(struct ata_port *ap)
315 return 0; 315 return 0;
316} 316}
317 317
318static inline void pdc20621_ata_sg(struct ata_taskfile *tf, u8 *buf, 318static inline void pdc20621_ata_sg(u8 *buf, unsigned int portno,
319 unsigned int portno, 319 unsigned int total_len)
320 unsigned int total_len)
321{ 320{
322 u32 addr; 321 u32 addr;
323 unsigned int dw = PDC_DIMM_APKT_PRD >> 2; 322 unsigned int dw = PDC_DIMM_APKT_PRD >> 2;
@@ -337,9 +336,8 @@ static inline void pdc20621_ata_sg(struct ata_taskfile *tf, u8 *buf,
337 buf32[dw], buf32[dw + 1]); 336 buf32[dw], buf32[dw + 1]);
338} 337}
339 338
340static inline void pdc20621_host_sg(struct ata_taskfile *tf, u8 *buf, 339static inline void pdc20621_host_sg(u8 *buf, unsigned int portno,
341 unsigned int portno, 340 unsigned int total_len)
342 unsigned int total_len)
343{ 341{
344 u32 addr; 342 u32 addr;
345 unsigned int dw = PDC_DIMM_HPKT_PRD >> 2; 343 unsigned int dw = PDC_DIMM_HPKT_PRD >> 2;
@@ -486,10 +484,10 @@ static void pdc20621_dma_prep(struct ata_queued_cmd *qc)
486 /* 484 /*
487 * Build ATA, host DMA packets 485 * Build ATA, host DMA packets
488 */ 486 */
489 pdc20621_host_sg(&qc->tf, &pp->dimm_buf[0], portno, total_len); 487 pdc20621_host_sg(&pp->dimm_buf[0], portno, total_len);
490 pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno); 488 pdc20621_host_pkt(&qc->tf, &pp->dimm_buf[0], portno);
491 489
492 pdc20621_ata_sg(&qc->tf, &pp->dimm_buf[0], portno, total_len); 490 pdc20621_ata_sg(&pp->dimm_buf[0], portno, total_len);
493 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno); 491 i = pdc20621_ata_pkt(&qc->tf, qc->dev->devno, &pp->dimm_buf[0], portno);
494 492
495 if (qc->tf.flags & ATA_TFLAG_LBA48) 493 if (qc->tf.flags & ATA_TFLAG_LBA48)