aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/dtc
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dtc')
-rw-r--r--usr.bin/dtc/fdt.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/dtc/fdt.cc b/usr.bin/dtc/fdt.cc
index a1e2fc4dbf2d..606493e3521b 100644
--- a/usr.bin/dtc/fdt.cc
+++ b/usr.bin/dtc/fdt.cc
@@ -1563,11 +1563,11 @@ device_tree::parse_file(text_input_buffer &input,
{
input.next_token();
// Read the header
- if (input.consume("/dts-v1/;"))
+ while (input.consume("/dts-v1/;"))
{
read_header = true;
+ input.next_token();
}
- input.next_token();
if (input.consume("/plugin/;"))
{
is_plugin = true;