tegra124-emc.c (aafb197f75cec20331c84ade2da9bc94ae0b9aff) | tegra124-emc.c (d1122e4b7639941305166628613a42fdf6e16296) |
---|---|
1/* 2 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 3 * 4 * Author: 5 * Mikko Perttunen <mperttunen@nvidia.com> 6 * 7 * This software is licensed under the terms of the GNU General Public 8 * License version 2, as published by the Free Software Foundation, and --- 983 unchanged lines hidden (view full) --- 992{ 993 struct device_node *np; 994 int err; 995 996 for_each_child_of_node(node, np) { 997 u32 value; 998 999 err = of_property_read_u32(np, "nvidia,ram-code", &value); | 1/* 2 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 3 * 4 * Author: 5 * Mikko Perttunen <mperttunen@nvidia.com> 6 * 7 * This software is licensed under the terms of the GNU General Public 8 * License version 2, as published by the Free Software Foundation, and --- 983 unchanged lines hidden (view full) --- 992{ 993 struct device_node *np; 994 int err; 995 996 for_each_child_of_node(node, np) { 997 u32 value; 998 999 err = of_property_read_u32(np, "nvidia,ram-code", &value); |
1000 if (err || (value != ram_code)) { 1001 of_node_put(np); | 1000 if (err || (value != ram_code)) |
1002 continue; | 1001 continue; |
1003 } | |
1004 1005 return np; 1006 } 1007 1008 return NULL; 1009} 1010 1011/* Debugfs entry */ --- 169 unchanged lines hidden --- | 1002 1003 return np; 1004 } 1005 1006 return NULL; 1007} 1008 1009/* Debugfs entry */ --- 169 unchanged lines hidden --- |