Skip to content

Commit 173ee39

Browse files
committed
of: Add missing exports of node name compare functions
Commit f42b0e1 ("of: add node name compare helper functions") failed to add the module exports to of_node_name_eq() and of_node_name_prefix(). Add them now. Fixes: f42b0e1 ("of: add node name compare helper functions") Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 885882a commit 173ee39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/of/base.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ bool of_node_name_eq(const struct device_node *np, const char *name)
6767

6868
return (strlen(name) == len) && (strncmp(node_name, name, len) == 0);
6969
}
70+
EXPORT_SYMBOL(of_node_name_eq);
7071

7172
bool of_node_name_prefix(const struct device_node *np, const char *prefix)
7273
{
@@ -75,6 +76,7 @@ bool of_node_name_prefix(const struct device_node *np, const char *prefix)
7576

7677
return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0;
7778
}
79+
EXPORT_SYMBOL(of_node_name_prefix);
7880

7981
int of_n_addr_cells(struct device_node *np)
8082
{

0 commit comments

Comments
 (0)