From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759338Ab0GTJtb (ORCPT ); Tue, 20 Jul 2010 05:49:31 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:59800 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758402Ab0GTJt2 (ORCPT ); Tue, 20 Jul 2010 05:49:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=bbUD4weYAlT0FQL1+biS3le3tmz+YF8CkWEt46yRuk6DnPPc/YvkKuWG/BwLni9qcY QxBGGBLjOFGig9J+lPQnthZUFU8/gJBuay53VfRmJOqPlJRVI3zaqJQIv2TpGuTEDfxO /lbKqq9as3e/PAtPaLUOWIWeOaTQfr8Uv7GTY= Subject: [PATCH] wm8960: fix compile error From: Axel Lin To: linux-kernel Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Tejun Heo , alsa-devel@alsa-project.org Content-Type: text/plain Date: Tue, 20 Jul 2010 17:49:22 +0800 Message-Id: <1279619362.11179.2.camel@mola> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes compile error: sound/soc/codecs/wm8960.c: In function 'wm8960_hw_params': sound/soc/codecs/wm8960.c:511: error: 'codec' undeclared (first use in this function) sound/soc/codecs/wm8960.c:511: error: (Each undeclared identifier is reported only once sound/soc/codecs/wm8960.c:511: error: for each function it appears in.) make[3]: *** [sound/soc/codecs/wm8960.o] Error 1 make[2]: *** [sound/soc/codecs] Error 2 make[1]: *** [sound/soc] Error 2 make: *** [sound] Error 2 Signed-off-by: Axel Lin --- This patch is against Liam's multi-component branch. Axel sound/soc/codecs/wm8960.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index e6df6e3..599c559 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -508,8 +508,8 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { struct snd_soc_pcm_runtime *rtd = substream->private_data; - struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec); struct snd_soc_codec *codec = rtd->codec; + struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec); u16 iface = snd_soc_read(codec, WM8960_IFACE1) & 0xfff3; int i; -- 1.5.4.3