From patchwork Sat Oct 8 15:16:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 118547 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A7442B70C5 for ; Sun, 9 Oct 2011 02:17:10 +1100 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RCYe6-0004sG-RS; Sat, 08 Oct 2011 15:17:03 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RCYe6-0001zP-Ij; Sat, 08 Oct 2011 15:17:02 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RCYe4-0001z7-6Y for linux-arm-kernel@lists.infradead.org; Sat, 08 Oct 2011 15:17:00 +0000 Received: from wuerfel.localnet (port-92-200-84-51.dynamic.qsc.de [92.200.84.51]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0LkEpj-1QgW0n2wyh-00cO76; Sat, 08 Oct 2011 17:16:58 +0200 From: Arnd Bergmann To: Sascha Hauer Subject: [PATCH 3/7] ARM: imx: export imx_ioremap Date: Sat, 08 Oct 2011 17:16:49 +0200 Message-ID: <2199742.hioYdt4QXg@wuerfel> User-Agent: KMail/4.7.1 (Linux/3.1.0-rc8nosema+; KDE/4.7.1; x86_64; ; ) In-Reply-To: <109850802.HMOqKGRdrl@wuerfel> References: <20111004092015.GM31404@pengutronix.de> <20111008101322.GH31404@pengutronix.de> <109850802.HMOqKGRdrl@wuerfel> MIME-Version: 1.0 X-Provags-ID: V02:K0:Deo2AGrFcsTOyUX9Qj9pGzMgPFQ4Re17uPt87t8Ehy1 cGTIpKG55vdzmqWuAdWQd8Y3DBD/V9otN6KO4fekz4p3DZAVUl PiTYkbzH+Hz0LKNQz8on+4u10GFOXAjrBeoM83m6ILiUB3lIFu nlsp2gh3uEX+fE+/okQuss1S/notvfYjOOL1LwuVHle/vAbPqR BfEV3++62VYIPgiCS6Qi29CSmZ9gva7hnb8ZrfzqKMydxrq4ZG oLAnA2+sSc0v5KWC3WARICjxnDJ05X2SGBVzR5SpCHRWPrMk99 8mCPzjmVnMGBgj3b7sGcBwmq+5JvGJPwGvFzP88TZyizlfUMBf 71tV0+D27LDFprnZCm10= X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20111008_111700_560440_7196CD42 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.186 listed in list.dnswl.org] Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org The arch_ioremap function on i.MX is now an indirect function pointer. In order to use it from any loadable module, the pointer itself has to be exported. ERROR: "imx_ioremap" [drivers/video/tmiofb.ko] undefined! ERROR: "imx_ioremap" [drivers/usb/host/sl811-hcd.ko] undefined! ERROR: "imx_ioremap" [drivers/usb/host/r8a66597-hcd.ko] undefined! ERROR: "imx_ioremap" [drivers/usb/host/oxu210hp-hcd.ko] undefined! ERROR: "imx_ioremap" [drivers/usb/gadget/r8a66597-udc.ko] undefined! Signed-off-by: Arnd Bergmann Acked-by: Shawn Guo --- arch/arm/plat-mxc/system.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-mxc/system.c b/arch/arm/plat-mxc/system.c index 9dad8dc..45e1b5f 100644 --- a/arch/arm/plat-mxc/system.c +++ b/arch/arm/plat-mxc/system.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -30,6 +31,7 @@ void (*imx_idle)(void) = NULL; void __iomem *(*imx_ioremap)(unsigned long, size_t, unsigned int) = NULL; +EXPORT_SYMBOL_GPL(imx_ioremap); static void __iomem *wdog_base;