summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_qdi.c
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2006-10-09 11:53:09 +0400
committerJeff Garzik <jeff@garzik.org>2006-10-11 12:48:52 +0400
commit53e36ada37cb8b01cfbf674580a79edc0bb764c7 (patch)
tree6698290a865cb1f0eba4b4065b1a4a3fdf42d0c3 /drivers/ata/pata_qdi.c
parenta83068bbaca39197dca26287c16186baee615f0a (diff)
downloadlinux-53e36ada37cb8b01cfbf674580a79edc0bb764c7.tar.xz
[PATCH] pata-qdi: fix le32 in data_xfer
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>
Diffstat (limited to 'drivers/ata/pata_qdi.c')
-rw-r--r--drivers/ata/pata_qdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c
index 7977f471d5e9..2c3cc0ccc606 100644
--- a/drivers/ata/pata_qdi.c
+++ b/drivers/ata/pata_qdi.c
@@ -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);
}
}