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: 4087841 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 795999F169 for ; Tue, 29 Apr 2014 14:32:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ACD0520148 for ; Tue, 29 Apr 2014 14:32:57 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 4C17920145 for ; Tue, 29 Apr 2014 14:32:56 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 42C6326549D; Tue, 29 Apr 2014 16:32:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_SORBS_WEB, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 657552650B0; Tue, 29 Apr 2014 16:28:01 +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 284A326506D; Tue, 29 Apr 2014 13:19:40 +0200 (CEST) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by alsa0.perex.cz (Postfix) with ESMTP id 911AE265055 for ; Tue, 29 Apr 2014 13:19:29 +0200 (CEST) Received: by mail-pa0-f53.google.com with SMTP id ld10so50674pab.12 for ; Tue, 29 Apr 2014 04:19:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3rHTn6MhJXGX5/ayi/COzkrGc2+f1GJB/mwhE8m+CmU=; b=kYpY/IqqXJ4bkQe/dowJfW0lkjlB7oiublDzg6eL4lG1COZ6Je4NIOTgs+Y7c4JYuD 1EK8Hri3vyLE2imdD5dcI7aW4BVmOdBpZwJEWAwFU07UE1Jaa069shP6LCJoagQj0Ic1 gS3Iil+GlY4zIJneIEemaCYEn8Ec0xiHaiYbgwLRf3vp/LgZXOHe6s4bZ19Hi+WazP4E pSu3SiEqAt9Xp+pf7W6ziyQDdxFf7wHGA7OQPSoBFN7yTfs9WH2seRUeWoH1E/0UPjJ0 sNkeLath/tB7O7YrB4lHq8Owo6HR6QeDgno2b7BkSwLsA6RmN19v4QbQ++5tM4hz03o1 CgSA== X-Gm-Message-State: ALoCoQnKsp7CwvctwMWiFa9DCMDKueqW98V75ix7RIFAJLo0O4j1pKdFAnPtYW03cF2VuoH6ZSs7 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 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> X-Mailman-Approved-At: Tue, 29 Apr 2014 16:27:55 +0200 Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org, arnd@arndb.de, Wan ZongShun , Liam Girdwood , Mark Brown , linux-arm-kernel@lists.infradead.org, kaixu.xia@linaro.org Subject: [alsa-devel] [PATCH 05/15] ASoC: nuc900: export nuc900_ac97_data 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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) {