projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a83068b
)
[PATCH] pata-qdi: fix le32 in data_xfer
author
Peter Korsgaard
<jacmet@sunsite.dk>
Mon, 9 Oct 2006 07:53:09 +0000
(09:53 +0200)
committer
Jeff 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
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_qdi.c
b/drivers/ata/pata_qdi.c
index 7977f471d5e9a0619674f209600121c86b52ce24..2c3cc0ccc6060fd19bdce5631bccb2e4b475005f 100644
(file)
--- 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_le
16
(inl(ap->ioaddr.data_addr));
+ pad = cpu_to_le
32
(inl(ap->ioaddr.data_addr));
memcpy(buf + buflen - slop, &pad, slop);
}
}