Skip to content
Snippets Groups Projects
Commit e5a6c79d authored by Rob Herring's avatar Rob Herring Committed by Wolfgang Denk
Browse files

scsi/ahci: ata id little endian fix


The ata id string always needs swapping, not just on BE machines.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent f18714dd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment