summaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt_fallback.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-25 18:59:07 -0600
committerSimon Glass <sjg@chromium.org>2016-09-18 21:04:38 -0600
commitf7a2aeeeb8d4bbbb9bfd788903942062c8535efb (patch)
tree6b3a40e80838d7c733894379baf4df4eb81da90e /tools/dtoc/fdt_fallback.py
parentc322a850affaf18f3833b3316292c91007c4b5d8 (diff)
downloadu-boot-imx-f7a2aeeeb8d4bbbb9bfd788903942062c8535efb.zip
u-boot-imx-f7a2aeeeb8d4bbbb9bfd788903942062c8535efb.tar.gz
u-boot-imx-f7a2aeeeb8d4bbbb9bfd788903942062c8535efb.tar.bz2
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.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/dtoc/fdt_fallback.py b/tools/dtoc/fdt_fallback.py
index 84a3db1..5b0f2a1 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