[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>
This commit is contained in:
Peter Korsgaard 2006-10-09 09:53:09 +02:00 committed by Jeff Garzik
parent a83068bbac
commit 53e36ada37
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ static void qdi_data_xfer(struct ata_device *adev, unsigned char *buf, unsigned
memcpy(&pad, buf + buflen - slop, slop); memcpy(&pad, buf + buflen - slop, slop);
outl(le32_to_cpu(pad), ap->ioaddr.data_addr); outl(le32_to_cpu(pad), ap->ioaddr.data_addr);
} else { } 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); memcpy(buf + buflen - slop, &pad, slop);
} }
} }