summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-19 04:08:56 (GMT)
committerSimon Glass <sjg@chromium.org>2017-07-11 16:08:20 (GMT)
commit418355cbaa4dfe1a202538c1584f0b7b147f59c0 (patch)
treea537b186c62e6d57e1917f2bfc884a98f068de29 /tools
parentcb008830aa10214c5e924d8fe15deaeca190d71a (diff)
downloadu-boot-fsl-qoriq-418355cbaa4dfe1a202538c1584f0b7b147f59c0.tar.xz
dtoc: Use self._options instead of the global options
This class should use the options object passed to it rather than finding the global one. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dtoc/dtoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py
index c0ab13a..056f515 100755
--- a/tools/dtoc/dtoc.py
+++ b/tools/dtoc/dtoc.py
@@ -177,7 +177,7 @@ class DtbPlatdata:
for node in root.subnodes:
if 'compatible' in node.props:
status = node.props.get('status')
- if (not options.include_disabled and not status or
+ if (not self._options.include_disabled and not status or
status.value != 'disabled'):
self._valid_nodes.append(node)
phandle_prop = node.props.get('phandle')
@@ -203,7 +203,7 @@ class DtbPlatdata:
for node in self.fdt.GetRoot().subnodes:
if 'compatible' in node.props:
status = node.props.get('status')
- if (not options.include_disabled and not status or
+ if (not self._options.include_disabled and not status or
status.value != 'disabled'):
node_list.append(node)
phandle_prop = node.props.get('phandle')