From: Rob Herring Date: Wed, 1 Jun 2011 09:10:26 +0000 (+0000) Subject: scsi/ahci: ata id little endian fix X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e5a6c79d4299ca8367edb73656ad9e51765ccd66;p=u-boot.git scsi/ahci: ata id little endian fix The ata id string always needs swapping, not just on BE machines. Signed-off-by: Rob Herring --- diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index a3ca2dcaf7..d431c5af91 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; }