From patchwork Tue Apr 29 11:18:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xia Kaixu X-Patchwork-Id: 29337 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AB593202FE for ; Tue, 29 Apr 2014 11:19:57 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id jy13sf177724veb.2 for ; Tue, 29 Apr 2014 04:19:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=k8PVJo5Jg527EjxTB760Yxu+RyA8bqi2GcE/0oLyYrc=; b=k5IT7svL++2WWsdTXKITsMzjuMNqPMQsfWlqeX+PmCCYIPzrxe1MOEv2qASW3y2k4R K4TYOUEplTBAX1PSN6NQpBnG5/Q12BhRPpB8cTwTFCu0mnxmMR2i4FVjES5jPQ377QmI NoWFd3ZYj47Qby1k0gWv+YPZw1DrRmLLoitI/Om5SHTr3Ce+vZMQX0xwdd83DzgOjz7k aRMijXLGjan4e9PiK95ktXv53/pDK6g0qZUGaRdBkH1Mrm3fJ4qznbM30NF+5AQUN4Ke QreCTWSdJILXMzzkCv4axCcdeOeSfFyDKTYposBW0fYfkn0fJQQmb1I24brUxR82Oa2p mHjA== X-Gm-Message-State: ALoCoQmEPTlPcrWf3/TMKJomXwYT3HAV31IQdDTMqpOCVw5pOp34zN8ArLws8o9Sypp7IHuy9A4t X-Received: by 10.58.41.39 with SMTP id c7mr16247434vel.25.1398770397448; Tue, 29 Apr 2014 04:19:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.248 with SMTP id i111ls69606qge.7.gmail; Tue, 29 Apr 2014 04:19:57 -0700 (PDT) X-Received: by 10.58.161.101 with SMTP id xr5mr75632veb.36.1398770397324; Tue, 29 Apr 2014 04:19:57 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id fx7si4422602vcb.153.2014.04.29.04.19.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 04:19:57 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id jw12so55278veb.27 for ; Tue, 29 Apr 2014 04:19:57 -0700 (PDT) X-Received: by 10.52.99.168 with SMTP id er8mr25111439vdb.26.1398770397242; Tue, 29 Apr 2014 04:19:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp188701vcb; Tue, 29 Apr 2014 04:19:56 -0700 (PDT) X-Received: by 10.66.140.104 with SMTP id rf8mr32436779pab.107.1398770396393; Tue, 29 Apr 2014 04:19:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id td10si12585278pac.99.2014.04.29.04.19.53 for ; Tue, 29 Apr 2014 04:19:53 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757499AbaD2LTd (ORCPT + 28 others); Tue, 29 Apr 2014 07:19:33 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36636 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757481AbaD2LT3 (ORCPT ); Tue, 29 Apr 2014 07:19:29 -0400 Received: by mail-pa0-f48.google.com with SMTP id hz1so52300pad.7 for ; Tue, 29 Apr 2014 04:19:28 -0700 (PDT) X-Received: by 10.66.180.141 with SMTP id do13mr32374270pac.93.1398770368102; Tue, 29 Apr 2014 04:19:28 -0700 (PDT) Received: from localhost.localdomain ([218.17.215.175]) by mx.google.com with ESMTPSA id xo9sm108641006pab.18.2014.04.29.04.19.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 04:19:27 -0700 (PDT) From: Xia Kaixu To: linux-kernel@vger.kernel.org Cc: linaro-kernel@lists.linaro.org, arnd@arndb.de, kaixu.xia@linaro.org, Mark Brown , Liam Girdwood , Wan ZongShun , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/15] ASoC: nuc900: export nuc900_ac97_data Date: Tue, 29 Apr 2014 19:18:26 +0800 Message-Id: <1398770316-19715-6-git-send-email-kaixu.xia@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398770316-19715-1-git-send-email-kaixu.xia@linaro.org> References: <1398770316-19715-1-git-send-email-kaixu.xia@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kaixu.xia@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Arnd Bergmann The symbol "nuc900_ac97_data" is used by the nuc900_pcm driver, which may be a loadable module, so we should export it. If one tries to build SND_SOC_NUC900 without SND_SOC_NUC900_AC97, the kernel fails to link because of the reference to nuc900_ac97_data. Signed-off-by: Arnd Bergmann Signed-off-by: Xia Kaixu Cc: Mark Brown Cc: Liam Girdwood Cc: Wan ZongShun Cc: alsa-devel@alsa-project.org Cc: linux-arm-kernel@lists.infradead.org --- sound/soc/nuc900/Kconfig | 1 + sound/soc/nuc900/nuc900-ac97.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sound/soc/nuc900/Kconfig b/sound/soc/nuc900/Kconfig index a0ed1c6..7f0c954 100644 --- a/sound/soc/nuc900/Kconfig +++ b/sound/soc/nuc900/Kconfig @@ -4,6 +4,7 @@ config SND_SOC_NUC900 tristate "SoC Audio for NUC900 series" depends on ARCH_W90X900 + select SND_SOC_NUC900_AC97 help This option enables support for AC97 mode on the NUC900 SoC. diff --git a/sound/soc/nuc900/nuc900-ac97.c b/sound/soc/nuc900/nuc900-ac97.c index 8987bf9..f2f6794 100644 --- a/sound/soc/nuc900/nuc900-ac97.c +++ b/sound/soc/nuc900/nuc900-ac97.c @@ -28,6 +28,7 @@ static DEFINE_MUTEX(ac97_mutex); struct nuc900_audio *nuc900_ac97_data; +EXPORT_SYMBOL_GPL(nuc900_ac97_data); static int nuc900_checkready(void) {