From 775ba3c093be186d345ab7132116fd0ed3e53ba2 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 15 Aug 2013 08:50:18 +0200 Subject: introduce barebox_set_model Instead of calling of_get_model() in barebox_get_model() add a barebox_set_model() and use it to set the boardinfo once it's available from the devicetree. Signed-off-by: Sascha Hauer --- drivers/of/base.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/of') diff --git a/drivers/of/base.c b/drivers/of/base.c index 4770421a2b..8af51d49ca 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1610,6 +1610,9 @@ int of_probe(void) of_chosen = of_find_node_by_path("/chosen"); of_property_read_string(root_node, "model", &of_model); + if (of_model) + barebox_set_model(of_model); + __of_parse_phandles(root_node); memory = of_find_node_by_path("/memory"); -- cgit v1.2.3