diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-25 18:59:07 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-09-18 21:04:38 -0600 |
commit | f7a2aeeeb8d4bbbb9bfd788903942062c8535efb (patch) | |
tree | 6b3a40e80838d7c733894379baf4df4eb81da90e /tools/dtoc/fdt_fallback.py | |
parent | c322a850affaf18f3833b3316292c91007c4b5d8 (diff) |
dtoc: Move a few more common functions into fdt.py
Some functions have the same code in the subclasses. Move these into the
superclass to avoid duplication.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt_fallback.py')
-rw-r--r-- | tools/dtoc/fdt_fallback.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/dtoc/fdt_fallback.py b/tools/dtoc/fdt_fallback.py index 84a3db1e78..5b0f2a181b 100644 --- a/tools/dtoc/fdt_fallback.py +++ b/tools/dtoc/fdt_fallback.py @@ -81,22 +81,6 @@ class FdtFallback(Fdt): def __init__(self, fname): Fdt.__init__(self, fname) - def Scan(self): - """Scan a device tree, building up a tree of Node objects - - This fills in the self._root property - """ - self._root = Node(self, 0, '/', '/') - self._root.Scan() - - def GetRoot(self): - """Get the root Node of the device tree - - Returns: - The root Node object - """ - return self._root - def GetSubNodes(self, node): """Returns a list of sub-nodes of a given node |