aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2011-06-28 10:39:41 -0500
committerJohn Rigby <john.rigby@linaro.org>2011-06-30 12:23:33 +0100
commit4e199e4e8d80a00b512ea7199fa4ce25c5d2e51a (patch)
treeb64dbb67714b53b586e92bd6990b6f4de373baaa
parent5c4b44bc48bd184c0fe0cd10fea5883f172b537f (diff)
downloadu-boot-linaro-stable-4e199e4e8d80a00b512ea7199fa4ce25c5d2e51a.tar.gz
scsi/ahci: ata id little endian fix
The ata id string always needs swapping, not just on BE machines. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Wolfgang Denk <wd@denx.de>
-rw-r--r--drivers/block/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index a3ca2dcaf..d431c5af9 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -468,7 +468,7 @@ static char *ata_id_strcpy(u16 *target, u16 *src, int len)
{
int i;
for (i = 0; i < len / 2; i++)
- target[i] = le16_to_cpu(src[i]);
+ target[i] = swab16(src[i]);
return (char *)target;
}