]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[libata] sata_via: fix obvious typo
authorJeff Garzik <jeff@garzik.org>
Wed, 8 Nov 2006 12:46:02 +0000 (07:46 -0500)
committerJeff Garzik <jeff@garzik.org>
Wed, 8 Nov 2006 12:46:02 +0000 (07:46 -0500)
Spotted by Martin Devera.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_via.c

index f4455a1efe2d6fa5cc7d14869b7494ad543bf11e..1c7f19aecc25f25973e2235ffd78b121026af304 100644 (file)
@@ -230,7 +230,7 @@ static int vt6420_prereset(struct ata_port *ap)
        int online;
 
        /* don't do any SCR stuff if we're not loading */
-       if (!ATA_PFLAG_LOADING)
+       if (!(ap->pflags & ATA_PFLAG_LOADING))
                goto skip_scr;
 
        /* Resume phy.  This is the old resume sequence from