From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751798AbdJONDk (ORCPT ); Sun, 15 Oct 2017 09:03:40 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:52586 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751333AbdJONDj (ORCPT ); Sun, 15 Oct 2017 09:03:39 -0400 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Date: Sun, 15 Oct 2017 14:01:56 +0100 From: Charles Keepax To: Robert Jarzmik CC: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Charles Keepax" , Lars-Peter Clausen , Marek Vasut , Chen-Yu Tsai , , , Subject: Re: [PATCH] ASoC: wm97xx: fix compilation corner case Message-ID: <20171015130156.oi2ffk6vwuxws6ow@localhost.localdomain> References: <20171014201409.9008-1-robert.jarzmik@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20171014201409.9008-1-robert.jarzmik@free.fr> User-Agent: NeoMutt/20170113 (1.7.2) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=8 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710150187 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 is correctly written. > > Signed-off-by: Robert Jarzmik > --- Acked-by: Charles Keepax Thanks, Charles