aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/scc_pata.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/scc_pata.c')
-rw-r--r--drivers/ide/scc_pata.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/ide/scc_pata.c b/drivers/ide/scc_pata.c
index feabf5487049..5ecb70cf29dc 100644
--- a/drivers/ide/scc_pata.c
+++ b/drivers/ide/scc_pata.c
@@ -645,25 +645,9 @@ static int __devinit init_setup_scc(struct pci_dev *dev,
645 return rc; 645 return rc;
646} 646}
647 647
648static void scc_tf_load(ide_drive_t *drive, struct ide_cmd *cmd) 648static void scc_tf_load(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid)
649{ 649{
650 struct ide_io_ports *io_ports = &drive->hwif->io_ports; 650 struct ide_io_ports *io_ports = &drive->hwif->io_ports;
651 struct ide_taskfile *tf = &cmd->hob;
652 u8 valid = cmd->valid.out.hob;
653
654 if (valid & IDE_VALID_FEATURE)
655 scc_ide_outb(tf->feature, io_ports->feature_addr);
656 if (valid & IDE_VALID_NSECT)
657 scc_ide_outb(tf->nsect, io_ports->nsect_addr);
658 if (valid & IDE_VALID_LBAL)
659 scc_ide_outb(tf->lbal, io_ports->lbal_addr);
660 if (valid & IDE_VALID_LBAM)
661 scc_ide_outb(tf->lbam, io_ports->lbam_addr);
662 if (valid & IDE_VALID_LBAH)
663 scc_ide_outb(tf->lbah, io_ports->lbah_addr);
664
665 tf = &cmd->tf;
666 valid = cmd->valid.out.tf;
667 651
668 if (valid & IDE_VALID_FEATURE) 652 if (valid & IDE_VALID_FEATURE)
669 scc_ide_outb(tf->feature, io_ports->feature_addr); 653 scc_ide_outb(tf->feature, io_ports->feature_addr);