From: Peter Korsgaard Date: Mon, 9 Oct 2006 07:53:09 +0000 (+0200) Subject: [PATCH] pata-qdi: fix le32 in data_xfer X-Git-Tag: v2.6.19-rc2~22^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=53e36ada37cb8b01cfbf674580a79edc0bb764c7;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_qdi.c b/drivers/ata/pata_qdi.c index 7977f471d5e..2c3cc0ccc60 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); } }