aboutsummaryrefslogtreecommitdiff
path: root/dtc-parser.y
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-11-14 15:24:49 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-11-14 15:24:49 +1100
commita3143fafbf83868748c99aa14daf274de5549826 (patch)
tree20ba91881fe53edc26d96ae5b80d0528a924b8e4 /dtc-parser.y
parent403cc79f06a135aee00f35cea975f068a72dbd92 (diff)
downloaddtc-a3143fafbf83868748c99aa14daf274de5549826.zip
dtc-a3143fafbf83868748c99aa14daf274de5549826.tar.gz
dtc-a3143fafbf83868748c99aa14daf274de5549826.tar.bz2
Revert "annotations: add positions"
This reverts commit baa1d2cf7894a32bf2f640ef40ebce561b2df565. Turns out this introduced memory badness. valgrind picks it up on x86, but it straight out SEGVs on x86. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc-parser.y')
-rw-r--r--dtc-parser.y13
1 files changed, 5 insertions, 8 deletions
diff --git a/dtc-parser.y b/dtc-parser.y
index 2ec981e..deda663 100644
--- a/dtc-parser.y
+++ b/dtc-parser.y
@@ -180,10 +180,7 @@ devicetree:
*/
if (!($<flags>-1 & DTSF_PLUGIN))
ERROR(&@2, "Label or path %s not found", $1);
- $$ = add_orphan_node(
- name_node(build_node(NULL, NULL, NULL),
- ""),
- $2, $1);
+ $$ = add_orphan_node(name_node(build_node(NULL, NULL), ""), $2, $1);
}
| devicetree DT_LABEL dt_ref nodedef
{
@@ -263,7 +260,7 @@ devicetree:
nodedef:
'{' proplist subnodes '}' ';'
{
- $$ = build_node($2, $3, &@$);
+ $$ = build_node($2, $3);
}
;
@@ -281,11 +278,11 @@ proplist:
propdef:
DT_PROPNODENAME '=' propdata ';'
{
- $$ = build_property($1, $3, &@$);
+ $$ = build_property($1, $3);
}
| DT_PROPNODENAME ';'
{
- $$ = build_property($1, empty_data, &@$);
+ $$ = build_property($1, empty_data);
}
| DT_DEL_PROP DT_PROPNODENAME ';'
{
@@ -566,7 +563,7 @@ subnode:
}
| DT_DEL_NODE DT_PROPNODENAME ';'
{
- $$ = name_node(build_node_delete(&@$), $2);
+ $$ = name_node(build_node_delete(), $2);
}
| DT_OMIT_NO_REF subnode
{