From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrPRA-0000IM-RZ for barebox@lists.infradead.org; Tue, 25 Jun 2013 09:21:40 +0000 Received: by mail-ea0-f178.google.com with SMTP id l15so6743670eak.9 for ; Tue, 25 Jun 2013 02:20:57 -0700 (PDT) From: Sebastian Hesselbarth Date: Tue, 25 Jun 2013 11:20:41 +0200 Message-Id: <1372152047-28134-4-git-send-email-sebastian.hesselbarth@gmail.com> In-Reply-To: <1372152047-28134-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <1372152047-28134-1-git-send-email-sebastian.hesselbarth@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/9] OF: base: move OF_ROOT_NODE_ defines to local OF code To: Sebastian Hesselbarth Cc: barebox@lists.infradead.org OF_ROOT_NODE_* defines should not be used outside of base.c. Move them to drivers/of/base.c to ensure they will not be used elsewhere. Signed-off-by: Sebastian Hesselbarth --- Cc: barebox@lists.infradead.org --- drivers/of/base.c | 3 +++ include/of.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 2778230..429f924 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -64,6 +64,9 @@ struct device_node *root_node; struct device_node *of_aliases; +#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 +#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 + int of_n_addr_cells(struct device_node *np) { const __be32 *ip; diff --git a/include/of.h b/include/of.h index e091326..8cab797 100644 --- a/include/of.h +++ b/include/of.h @@ -101,9 +101,6 @@ int of_get_named_gpio(struct device_node *np, void of_print_property(const void *data, int len); void of_print_cmdline(struct device_node *root); -#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1 -#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1 - void of_print_nodes(struct device_node *node, int indent); int of_probe(void); int of_parse_dtb(struct fdt_header *fdt); -- 1.7.2.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox