diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index 7511c71695c6..6e097d8ed288 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c @@ -326,7 +326,7 @@ static void byte_swap_64(u64 *data_in, u64 *data_out, u32 len) int i; for (i = 0; i < len / 8; i++) - data_out[i] = cpu_to_be64(le64_to_cpu(data_in[i])); + data_out[i] = swab64(data_in[i]); } static int wm0010_firmware_load(const char *name, struct snd_soc_component *component)