Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753615AbdIDNOs (ORCPT ); Mon, 4 Sep 2017 09:14:48 -0400 Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:60977 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbdIDNOq (ORCPT ); Mon, 4 Sep 2017 09:14:46 -0400 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 04 Sep 2017 15:14:45 +0200 X-ME-IP: 90.55.206.157 From: Robert Jarzmik To: Charles Keepax Cc: Dmitry Torokhov , Lee Jones , Jaroslav Kysela , Takashi Iwai , Daniel Mack , Haojian Zhuang , Liam Girdwood , Mark Brown , Lars-Peter Clausen , Charles Keepax , , , , , Subject: Re: [PATCH v6 09/12] ASoC: wm9712: add ac97 new bus support References: <20170902195414.3699-1-robert.jarzmik@free.fr> <20170902195414.3699-10-robert.jarzmik@free.fr> <20170904101849.7uefwhuqz4vtntrp@localhost.localdomain> X-URL: http://belgarath.falguerolles.org/ Date: Mon, 04 Sep 2017 15:14:40 +0200 In-Reply-To: <20170904101849.7uefwhuqz4vtntrp@localhost.localdomain> (Charles Keepax's message of "Mon, 4 Sep 2017 11:18:49 +0100") Message-ID: <8760cyppvj.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 968 Lines: 31 Charles Keepax writes: > On Sat, Sep 02, 2017 at 09:54:11PM +0200, Robert Jarzmik wrote: >> Add support for the new ac97 bus model, where devices are automatically >> discovered on AC-Links. >> >> Signed-off-by: Robert Jarzmik >> --- >> Since v4: >> - added #ifdef spotted by Charles >> --- >> snd_soc_codec_init_regmap(codec, regmap); >> @@ -666,7 +677,8 @@ static int wm9712_soc_remove(struct snd_soc_codec *codec) >> struct wm9712_priv *wm9712 = snd_soc_codec_get_drvdata(codec); >> >> snd_soc_codec_exit_regmap(codec); >> - snd_soc_free_ac97_codec(wm9712->ac97); >> + if (!wm9712->mfd_pdata) >> + snd_soc_free_ac97_codec(wm9712->ac97); > > This bit is still missing the ifdef it has in the preceeding > patch. Damn, you're right, it's missing in both wm9705 and wm9712, but not in wm9713. That will be for the hopefully last volley of this serie. Thanks for spotting that. Cheers. -- Robert