diff options
author | Nicolin Chen <Guangyu.Chen@freescale.com> | 2014-05-06 16:41:39 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-09 21:00:23 +0100 |
commit | e9b383dc940f4cba6876887ecb47df3082ec925e (patch) | |
tree | eb4226ab1f6aabaf150a48e51e51a55f732f7f48 /sound | |
parent | e1d4d3c854f25cff6c6c139588570e124d5e8fa4 (diff) | |
download | op-kernel-dev-e9b383dc940f4cba6876887ecb47df3082ec925e.zip op-kernel-dev-e9b383dc940f4cba6876887ecb47df3082ec925e.tar.gz |
ASoC: fsl_spdif: Fix incorrect usage of regmap_read()
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/fsl_spdif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index b912d45..9ea2dd4 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -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); |