summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-03-31 09:16:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-31 09:16:12 +0200
commite2fa0cca06de8612ec96b3a595c856ab6dd1eaa1 (patch)
tree5c007c9e875446e3dacd32d5a5a09a4fe0646a47
parent0d823930940e68c62c39076b46a158f85edd5832 (diff)
downloadbarebox-e2fa0cca06de8612ec96b3a595c856ab6dd1eaa1.tar.gz
of: Add support for "stdout-path" property
ePAPR 1.1 specifies the "stdout-path" property, but barebox currently only handles the "linux,stdout-path" property. Add parsing for the new property name. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/of/base.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 104b6da..c440a69 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1841,8 +1841,11 @@ int of_device_is_stdout_path(struct device_d *dev)
struct device_node *dn;
const char *name;
- name = of_get_property(of_chosen, "linux,stdout-path", NULL);
- if (name == NULL)
+ name = of_get_property(of_chosen, "stdout-path", NULL);
+ if (!name)
+ name = of_get_property(of_chosen, "linux,stdout-path", NULL);
+
+ if (!name)
return 0;
dn = of_find_node_by_path(name);