Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 676e1b2f authored by Grant Likely's avatar Grant Likely
Browse files

of: Add support for ePAPR "stdout-path" property



ePAPR 1.1 defines the "stdout-path" property for specifying the console
device, but Linux currently only handles the older "linux,stdout-path"
property. This patch adds parsing for the new property name.

Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent ca3992bc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1955,8 +1955,8 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align))
		of_chosen = of_find_node_by_path("/chosen@0");

	if (of_chosen) {
		const char *name;

		const char *name = of_get_property(of_chosen, "stdout-path", NULL);
		if (!name)
			name = of_get_property(of_chosen, "linux,stdout-path", NULL);
		if (name)
			of_stdout = of_find_node_by_path(name);