Skip to content

Commit 80c2022

Browse files
committed
of: Fix export of of_find_matching_node_and_match()
Commit 50c8af4, "of: introduce for_each_matching_node_and_match()" renamed of_find_matching_node() to of_find_matching_node_and_match() and created a new static inline of_find_matching_node() wrapper around the new name. However, the change neglected to change the EXPORT_SYMBOL() reference causing build errors for modules. This patch fixes the EXPORT_SYMBOL() statement. Discovered on a PowerPC Efika build with the mpc52xx_uart driver being built as a module. Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
1 parent 752451f commit 80c2022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/of/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ struct device_node *of_find_matching_node_and_match(struct device_node *from,
629629
read_unlock(&devtree_lock);
630630
return np;
631631
}
632-
EXPORT_SYMBOL(of_find_matching_node);
632+
EXPORT_SYMBOL(of_find_matching_node_and_match);
633633

634634
/**
635635
* of_modalias_node - Lookup appropriate modalias for a device node

0 commit comments

Comments
 (0)