]> git.sur5r.net Git - u-boot/commitdiff
dtoc: Use self._options instead of the global options
authorSimon Glass <sjg@chromium.org>
Mon, 19 Jun 2017 04:08:56 +0000 (22:08 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
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>
tools/dtoc/dtoc.py

index c0ab13ad34fa279e78fb386e65262d7538caa072..056f5157c95811a1104dfaa29650de35b87c5c63 100755 (executable)
@@ -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')