]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
libata-sff: Correct use of check_status()
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Mon, 15 Oct 2007 18:25:29 +0000 (19:25 +0100)
committerJeff Garzik <jeff@garzik.org>
Thu, 18 Oct 2007 00:49:02 +0000 (20:49 -0400)
ata_check_status() does an SFF compliant check
ata_chk_status() does a generic call to ap->ops->check_status (usually
ata_check_status)

libata-sff uses the wrong one. Hardly suprising given the naming here,
which ought to get fixed to ata_sff_check_status() perhaps ?

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-sff.c

index 026439e05afe5e9a1a75ebaf246123c7fdc6c18b..1232dcb6008de35c8879593824dbaddce6e73c71 100644 (file)
@@ -156,7 +156,7 @@ void ata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
 {
        struct ata_ioports *ioaddr = &ap->ioaddr;
 
-       tf->command = ata_check_status(ap);
+       tf->command = ata_chk_status(ap);
        tf->feature = ioread8(ioaddr->error_addr);
        tf->nsect = ioread8(ioaddr->nsect_addr);
        tf->lbal = ioread8(ioaddr->lbal_addr);