diff options
author | Jinyoung Park <jinyoungp@nvidia.com> | 2013-09-09 18:13:22 +0900 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-09-10 21:54:27 -0700 |
commit | b4c1cbb7af55a8a67e32bc788138c731b5e1d239 (patch) | |
tree | 1815ebbd128911e9e6973cf3d816c7c40c2fe504 | |
parent | 8a2f117c4472919ec22263c858fbac1a91ee5e72 (diff) |
ARM: tegra: clock: Correct wrong pointer passing
Corrected a wrong device node pointer passing.
Bug 1352073
Change-Id: Ib4354e0b74d1babf671d141cea238e9a55299343
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/271984
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/tegra11_emc.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/tegra3_emc.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/tegra11_emc.c b/arch/arm/mach-tegra/tegra11_emc.c index 0aab1c2c1898..f19832466bf4 100644 --- a/arch/arm/mach-tegra/tegra11_emc.c +++ b/arch/arm/mach-tegra/tegra11_emc.c @@ -1138,7 +1138,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); diff --git a/arch/arm/mach-tegra/tegra3_emc.c b/arch/arm/mach-tegra/tegra3_emc.c index f29ef90dab81..4a62a83bad10 100644 --- a/arch/arm/mach-tegra/tegra3_emc.c +++ b/arch/arm/mach-tegra/tegra3_emc.c @@ -1,7 +1,7 @@ /* * arch/arm/mach-tegra/tegra3_emc.c * - * Copyright (C) 2011-2012, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1055,7 +1055,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); |