Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757677Ab2BCUzM (ORCPT ); Fri, 3 Feb 2012 15:55:12 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:59747 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757629Ab2BCUzJ (ORCPT ); Fri, 3 Feb 2012 15:55:09 -0500 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 98.234.237.12 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/RbrMEVymW2EhCFqX0eJH2 Subject: [PATCH 1/2] pinmux: Export pinmux_register_mappings for pinmux modules To: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: Stephen Warren , Linus Walleij , Barry Song <21cnbao@gmail.com>, Haojian Zhuang , Grant Likely , Thomas Abraham , Rajendra Nayak , Dong Aisheng , Shawn Guo , Dong Aisheng Date: Fri, 03 Feb 2012 12:55:05 -0800 Message-ID: <20120203205505.4089.67339.stgit@kaulin.local> In-Reply-To: <20120203205049.4089.74610.stgit@kaulin.local> References: <20120203205049.4089.74610.stgit@kaulin.local> User-Agent: StGit/0.16 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1294 Lines: 36 With devidce tree based pinmux drivers we may not have static pinmux mappings as they can be dynamically created based on the device tree entries. Signed-off-by: Tony Lindgren --- drivers/pinctrl/pinmux.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 7c3193f..140d207 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -338,7 +338,7 @@ EXPORT_SYMBOL_GPL(pinmux_gpio_direction_output); * passed into this function will be owned by the pinmux core and cannot be * freed. */ -int __init pinmux_register_mappings(struct pinmux_map const *maps, +int pinmux_register_mappings(struct pinmux_map const *maps, unsigned num_maps) { void *tmp_maps; @@ -402,6 +402,7 @@ int __init pinmux_register_mappings(struct pinmux_map const *maps, pinmux_maps_num += num_maps; return 0; } +EXPORT_SYMBOL_GPL(pinmux_register_mappings); /** * acquire_pins() - acquire all the pins for a certain function on a pinmux -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/