diff options
author | Benoit Parrot <bparrot@ti.com> | 2021-09-16 16:26:15 +0200 |
---|---|---|
committer | Vignesh Raghavendra <vigneshr@ti.com> | 2022-01-29 18:37:49 +0530 |
commit | 443b63dce28d4c2e570ab902cdd3f747a7cd7b9d (patch) | |
tree | d3142fde128930d2c3e7eee90e07a103eb797e9e /scripts | |
parent | 52d79b5ce7dbe614abae38eb07ea406709c5f3cf (diff) |
dtc: checks: check_graph_port: skip node name check in overlay case
In check_graph_port() we need to skip the node name check in the overlay
case as it causes a false positive warning.
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dtc/checks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/dtc/checks.c b/scripts/dtc/checks.c index 17cb6890d45a..4e7fe422da51 100644 --- a/scripts/dtc/checks.c +++ b/scripts/dtc/checks.c @@ -1740,7 +1740,8 @@ static void check_graph_port(struct check *c, struct dt_info *dti, if (node->bus != &graph_port_bus) return; - if (!strprefixeq(node->name, node->basenamelen, "port")) + if (!strprefixeq(node->name, node->basenamelen, "port") && + !(dti->dtsflags & DTSF_PLUGIN)) FAIL(c, dti, node, "graph port node name should be 'port'"); check_graph_reg(c, dti, node); |