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

Commit b39f38c4 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Stephen Warren
Browse files

ARM: tegra: emc: correction of ram-code parsing from dt



Change tegra_emc_ramcode_devnode() to get ram-code from child node instead of
parent.

Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent f722406f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ static struct device_node *tegra_emc_ramcode_devnode(struct device_node *np)
	u32 reg;

	for_each_child_of_node(np, iter) {
		if (of_property_read_u32(np, "nvidia,ram-code", &reg))
		if (of_property_read_u32(iter, "nvidia,ram-code", &reg))
			continue;
		if (reg == tegra_bct_strapping)
			return of_node_get(iter);