commit | e5a6c79d4299ca8367edb73656ad9e51765ccd66 | [log] [tgz] |
---|---|---|
author | Rob Herring <rob.herring@calxeda.com> | Wed Jun 01 09:10:26 2011 +0000 |
committer | Wolfgang Denk <wd@denx.de> | Tue Jul 26 00:06:08 2011 +0200 |
tree | e29900c9aae42862f7f78e7a6098651ea70a3b91 | |
parent | f18714dd61331b48ab9dc0ef717d61f1441a0e17 [diff] |
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>
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index a3ca2dc..d431c5a 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c
@@ -468,7 +468,7 @@ { int i; for (i = 0; i < len / 2; i++) - target[i] = le16_to_cpu(src[i]); + target[i] = swab16(src[i]); return (char *)target; }