diff options
author | Arkadiusz Drabczyk <arkadiusz@drabczyk.org> | 2020-03-08 17:56:43 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-03-10 11:44:23 +1100 |
commit | 87a656ae5ff96c4903e68eb2f999532a3b98e3a7 (patch) | |
tree | 3fcb8c3fb68a393f82d062f9adb5c183aa3ed7f6 /checks.c | |
parent | 73d6e9ecb4179b510408bc526240f829262df361 (diff) | |
download | device-tree-compiler-87a656ae5ff96c4903e68eb2f999532a3b98e3a7.tar.gz |
check: Inform about missing ranges
In check_unit_address_vs_reg() warning message already says 'reg _or_
ranges' when reg or ranges are present but unit name is missing. Add
this message for compatibility to say "reg _or_ ranges" when unit name
is present but neither reg nor ranges are present.
Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Message-Id: <20200308165643.19281-1-arkadiusz@drabczyk.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'checks.c')
-rw-r--r-- | checks.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -352,7 +352,7 @@ static void check_unit_address_vs_reg(struct check *c, struct dt_info *dti, FAIL(c, dti, node, "node has a reg or ranges property, but no unit name"); } else { if (unitname[0]) - FAIL(c, dti, node, "node has a unit name, but no reg property"); + FAIL(c, dti, node, "node has a unit name, but no reg or ranges property"); } } WARNING(unit_address_vs_reg, check_unit_address_vs_reg, NULL); |