]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] pata-qdi: fix le32 in data_xfer
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 9 Oct 2006 07:53:09 +0000 (09:53 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 11 Oct 2006 08:48:52 +0000 (04:48 -0400)
The following tiny patch fixes a typo in qdi_data_xfer (le32 instead
of le16).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_qdi.c

index 7977f471d5e9a0619674f209600121c86b52ce24..2c3cc0ccc6060fd19bdce5631bccb2e4b475005f 100644 (file)
@@ -141,7 +141,7 @@ static void qdi_data_xfer(struct ata_device *adev, unsigned char *buf, unsigned
                                memcpy(&pad, buf + buflen - slop, slop);
                                outl(le32_to_cpu(pad), ap->ioaddr.data_addr);
                        } else {
-                               pad = cpu_to_le16(inl(ap->ioaddr.data_addr));
+                               pad = cpu_to_le32(inl(ap->ioaddr.data_addr));
                                memcpy(buf + buflen - slop, &pad, slop);
                        }
                }