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:
parent
f18714dd61
commit
e5a6c79d42
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user