From: Takashi Iwai Date: Mon, 6 May 2019 15:02:22 +0000 (+0200) Subject: ASoC: da7219: Fix a compile warning at CONFIG_COMMON_CLK=n X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ab0c433f32f86370152bc9cb4900e5fe9a11055c;p=linux.git ASoC: da7219: Fix a compile warning at CONFIG_COMMON_CLK=n A trivial fix for the randconfig build error: sound/soc/codecs/da7219.c:2366:6: warning: unused variable ā€˜i’ [-Wunused-variable] Fixes: d90ba6c8b53e ("ASoC: da7219: Expose BCLK and WCLK control through CCF") Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 206d01c6eb7ed..43c03e7b2f0e7 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -2357,7 +2357,9 @@ err_disable_reg: static void da7219_remove(struct snd_soc_component *component) { struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); +#ifdef CONFIG_COMMON_CLK int i; +#endif da7219_aad_exit(component);