Re: [PATCH] ASoC: wm97xx: fix compilation corner case

2017-10-15 Thread Charles Keepax
On Sat, Oct 14, 2017 at 10:14:02PM +0200, Robert Jarzmik wrote: > When the old AC97 is not used, CONFIG_SND_SOC_AC97_BUS is not > defined. As a consequence, in the error path, snd_soc_free_ac97_codec() > is not defined and triggers a compilation error. > > Fix it for wm9705 and wm9712, as wm9713 i

[PATCH] ASoC: wm97xx: fix compilation corner case

2017-10-14 Thread Robert Jarzmik
When the old AC97 is not used, CONFIG_SND_SOC_AC97_BUS is not defined. As a consequence, in the error path, snd_soc_free_ac97_codec() is not defined and triggers a compilation error. Fix it for wm9705 and wm9712, as wm9713 is correctly written. Signed-off-by: Robert Jarzmik --- sound/soc/codecs