summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320aic32x4.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-04-17 17:01:57 +0200
committerMark Brown <broonie@kernel.org>2019-05-02 03:46:03 +0200
commit83b4f50ca2b2e93346195b51f58e8089f9f35c0b (patch)
tree0f968fcd0cf16499f62f501f73b5dfab09df88b4 /sound/soc/codecs/tlv320aic32x4.c
parentASoC: fsl_micfil: Remove set but not used variable 'osr' (diff)
downloadlinux-83b4f50ca2b2e93346195b51f58e8089f9f35c0b.tar.xz
linux-83b4f50ca2b2e93346195b51f58e8089f9f35c0b.zip
ASoC: tlv320aic32x4: Remove set but not used variable 'mclk_rate'
Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/codecs/tlv320aic32x4.c: In function 'aic32x4_setup_clocks': sound/soc/codecs/tlv320aic32x4.c:669:16: warning: variable 'mclk_rate' set but not used [-Wunused-but-set-variable] It is not used since introduction in commit 96c3bb00239d ("ASoC: tlv320aic32x4: Dynamically Determine Clocking") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic32x4.c')
-rw-r--r--sound/soc/codecs/tlv320aic32x4.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 6edee05ff9f0..83608f386aef 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -684,9 +684,8 @@ static int aic32x4_setup_clocks(struct snd_soc_component *component,
u8 madc, nadc, mdac, ndac, max_nadc, min_mdac, max_ndac;
u8 dosr_increment;
u16 max_dosr, min_dosr;
- unsigned long mclk_rate, adc_clock_rate, dac_clock_rate;
+ unsigned long adc_clock_rate, dac_clock_rate;
int ret;
- struct clk *mclk;
struct clk_bulk_data clocks[] = {
{ .id = "pll" },
@@ -700,9 +699,6 @@ static int aic32x4_setup_clocks(struct snd_soc_component *component,
if (ret)
return ret;
- mclk = clk_get_parent(clocks[1].clk);
- mclk_rate = clk_get_rate(mclk);
-
if (sample_rate <= 48000) {
aosr = 128;
adc_resource_class = 6;