dtc: re-apply r353961, r354115

I missed in final review of r357923's diff that these ones hadn't yet been
sent upstream and inadvertently reverted them. =-( Re-apply now.
This commit is contained in:
Kyle Evans 2020-02-14 18:50:03 +00:00
parent aac4229aac
commit d16c90f51c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357924
2 changed files with 3 additions and 2 deletions

View File

@ -36,6 +36,7 @@
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>

View File

@ -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;