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>
master
Rob Herring 14 years ago committed by Wolfgang Denk
parent f18714dd61
commit e5a6c79d42
  1. 2
      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;
}

Loading…
Cancel
Save