9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2014-03-31 09:16:09 +02:00
parent 0d82393094
commit e2fa0cca06
1 changed files with 5 additions and 2 deletions

View File

@ -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);