summaryrefslogtreecommitdiff
path: root/tools/dtoc/dtoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dtoc/dtoc.py')
-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 c0ab13ad34f..056f5157c95 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')