
This is not used anywhere in dtoc, so drop it.
Signed-off-by: Simon Glass sjg@chromium.org ---
tools/dtoc/fdt_fallback.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tools/dtoc/fdt_fallback.py b/tools/dtoc/fdt_fallback.py index ddc4097..cb97cff 100644 --- a/tools/dtoc/fdt_fallback.py +++ b/tools/dtoc/fdt_fallback.py @@ -97,12 +97,11 @@ class FdtFallback(Fdt): out = command.Output('fdtget', self._fname, '-l', node) return out.strip().splitlines()
- def GetProps(self, node, convert_dashes=False): + def GetProps(self, node): """Get all properties from a node
Args: node: full path to node name to look in - convert_dashes: True to convert - to _ in node names
Returns: A dictionary containing all the properties, indexed by node name. @@ -117,8 +116,6 @@ class FdtFallback(Fdt): props_dict = {} for prop in props: name = prop - if convert_dashes: - prop = re.sub('-', '_', prop) props_dict[prop] = self.GetProp(node, name) return props_dict