diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2013-05-12 10:26:49 +0000 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-05-17 17:01:24 -0600 |
commit | b39f38c4d27f04fbc3ee8ce9a5fb04673047d5a0 (patch) | |
tree | 10dc602ff096d754e8011750c9bb82e613ab2f2a | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
download | blackbird-op-linux-b39f38c4d27f04fbc3ee8ce9a5fb04673047d5a0.tar.gz blackbird-op-linux-b39f38c4d27f04fbc3ee8ce9a5fb04673047d5a0.zip |
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: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/tegra2_emc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra2_emc.c b/arch/arm/mach-tegra/tegra2_emc.c index 9e8bdfa2b369..25f0189889b7 100644 --- a/arch/arm/mach-tegra/tegra2_emc.c +++ b/arch/arm/mach-tegra/tegra2_emc.c @@ -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", ®)) + if (of_property_read_u32(iter, "nvidia,ram-code", ®)) continue; if (reg == tegra_bct_strapping) return of_node_get(iter); |