From patchwork Mon Mar 2 14:47:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "George G. Davis" X-Patchwork-Id: 9541 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n22ElPJw004126 for ; Mon, 2 Mar 2009 14:47:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751572AbZCBOrZ (ORCPT ); Mon, 2 Mar 2009 09:47:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752117AbZCBOrZ (ORCPT ); Mon, 2 Mar 2009 09:47:25 -0500 Received: from gateway-1237.mvista.com ([63.81.120.158]:11834 "EHLO gateway-1237.mvista.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbZCBOrZ (ORCPT ); Mon, 2 Mar 2009 09:47:25 -0500 Received: from c-24-61-246-122.hsd1.ma.comcast.net (asshur.mvista.com [10.0.0.11]) by hermes.mvista.com (Postfix) with ESMTP id 74F2C18389 for ; Mon, 2 Mar 2009 06:47:23 -0800 (PST) Date: Mon, 2 Mar 2009 09:47:23 -0500 From: "George G. Davis" To: linux-omap@vger.kernel.org Subject: [PATCH] ARM: OMAP2: Fix missing system control module exports Message-ID: <20090302144723.GD18140@mvista.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org When building ASoC drivers as modules for SND_OMAP_SOC_MCBSP based targets, the build fails because omap_ctrl_{read,write}l lack exports. So add the missing exports for omap_ctrl_{read,write}[bwl] to allow building these ASoC (and other) drivers as modules. Signed-off-by: George G. Davis Acked-by: Jarkko Nikula --- arch/arm/mach-omap2/control.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 5f3aad9..6b14639 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c @@ -36,29 +36,35 @@ u8 omap_ctrl_readb(u16 offset) { return __raw_readb(OMAP_CTRL_REGADDR(offset)); } +EXPORT_SYMBOL(omap_ctrl_readb); u16 omap_ctrl_readw(u16 offset) { return __raw_readw(OMAP_CTRL_REGADDR(offset)); } +EXPORT_SYMBOL(omap_ctrl_readw); u32 omap_ctrl_readl(u16 offset) { return __raw_readl(OMAP_CTRL_REGADDR(offset)); } +EXPORT_SYMBOL(omap_ctrl_readl); void omap_ctrl_writeb(u8 val, u16 offset) { __raw_writeb(val, OMAP_CTRL_REGADDR(offset)); } +EXPORT_SYMBOL(omap_ctrl_writeb); void omap_ctrl_writew(u16 val, u16 offset) { __raw_writew(val, OMAP_CTRL_REGADDR(offset)); } +EXPORT_SYMBOL(omap_ctrl_writew); void omap_ctrl_writel(u32 val, u16 offset) { __raw_writel(val, OMAP_CTRL_REGADDR(offset)); } +EXPORT_SYMBOL(omap_ctrl_writel);