]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: fsl_spdif: Fix incorrect usage of regmap_read()
authorNicolin Chen <Guangyu.Chen@freescale.com>
Tue, 6 May 2014 08:41:39 +0000 (16:41 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 9 Jun 2014 20:00:23 +0000 (21:00 +0100)
We should not copy the return value into this val since it's supposed to
get the value of the register not the success result of regmap_read().
Thus fix it.

Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_spdif.c

index b912d45a2a4c60f4f99a2d2b464100f1d9632879..9ea2dd471172cc4ab6c1be192f4ed70ea6d185d7 100644 (file)
@@ -762,7 +762,7 @@ static int fsl_spdif_vbit_get(struct snd_kcontrol *kcontrol,
        struct regmap *regmap = spdif_priv->regmap;
        u32 val;
 
-       val = regmap_read(regmap, REG_SPDIF_SIS, &val);
+       regmap_read(regmap, REG_SPDIF_SIS, &val);
        ucontrol->value.integer.value[0] = (val & INT_VAL_NOGOOD) != 0;
        regmap_write(regmap, REG_SPDIF_SIC, INT_VAL_NOGOOD);