From patchwork Wed Apr 30 09:06:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 4091991 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DAFC59F169 for ; Wed, 30 Apr 2014 09:07:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F21020211 for ; Wed, 30 Apr 2014 09:07:00 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B9295201F4 for ; Wed, 30 Apr 2014 09:06:58 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 50D2C26522D; Wed, 30 Apr 2014 11:06:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 2055D2651FC; Wed, 30 Apr 2014 11:06:47 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 16278265204; Wed, 30 Apr 2014 11:06:45 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by alsa0.perex.cz (Postfix) with ESMTP id AB5C72651F1 for ; Wed, 30 Apr 2014 11:06:32 +0200 (CEST) Received: from wuerfel.localnet (HSI-KBW-134-3-133-35.hsi14.kabel-badenwuerttemberg.de [134.3.133.35]) by mrelayeu.kundenserver.de (node=mreue101) with ESMTP (Nemesis) id 0ML865-1WfhS831Kz-000NDk; Wed, 30 Apr 2014 11:06:29 +0200 From: Arnd Bergmann To: Xiubo Li Date: Wed, 30 Apr 2014 11:06:29 +0200 Message-ID: <4308079.So6q7GrfYB@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V02:K0:QbdPDx2/FGl+k52//pjIhhrWVuAgfiDNe1fhm95fiP3 9F+/oK6XBQk5LwW760dQ+kRSTZ+G/bGYJRfcQ5M98/Z2Wuihq5 lxgmtUOYFC0V3KO9ct8OF/qDHe4GDI3UEyBwJV93HrkQNp2maN 3TqfbOAfn8pys1E1urJCbyzrkfjVgpxLymMEXWmH1p+Zk4PUrr OICyTqujmD8NHhOrDOET/YZ3Y7ADbZEV/MoaTVtd/Pj+zgDSx4 oZXrSv1BvYimb+2/WEYRs9iHGW1Avyo0bXt5x80hRX7q1WXHgA mKoyUL6hvOpwHGKnDqlJQp7XcPBscHiU+Yf2sTVpc/jot6/U1A s3zYPA1SvXhLQ65db78Y= Cc: alsa-devel@alsa-project.org, Mark Brown , Liam Girdwood , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: cq93vc: fix cq93vc_get_regmap build error X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 49101a25acd69c "ASoC: cq93vc: Remove the set_cache_io() entirely from ASoC probe" introduced the cq93vc_get_regmap function that has an obvious build error referring to the 'codec' variable that is not declared anywhere" sound/soc/codecs/cq93vc.c: In function 'cq93vc_get_regmap': sound/soc/codecs/cq93vc.c:157:34: error: 'codec' undeclared (first use in this function) struct davinci_vc *davinci_vc = codec->dev->platform_data; ^ This changes the code to compile again, presumably in the way it was intended. Not tested. Signed-off-by: Arnd Bergmann Cc: Xiubo Li Reviewed-by: Xiubo Li diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c index 5ee48c8..537327c 100644 --- a/sound/soc/codecs/cq93vc.c +++ b/sound/soc/codecs/cq93vc.c @@ -154,7 +154,7 @@ static int cq93vc_remove(struct snd_soc_codec *codec) static struct regmap *cq93vc_get_regmap(struct device *dev) { - struct davinci_vc *davinci_vc = codec->dev->platform_data; + struct davinci_vc *davinci_vc = dev->platform_data; return davinci_vc->regmap; }