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>
This commit is contained in:
Rob Herring 2011-06-01 09:10:26 +00:00 committed by Wolfgang Denk
parent f18714dd61
commit e5a6c79d42

View File

@ -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;
}