The function __of_find_all_nodes() is used in the public header linux/of.h and if any driver developed using this API then it reports error as unknown symbol if compiled as module. Export this APIs using EXPORT_SYMBOL() so that it can be used from driver compiled as module. Signed-off-by: Laxman Dewangan <ldewangan@xxxxxxxxxx> --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index d687e6d..89c2083 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -269,6 +269,7 @@ struct device_node *__of_find_all_nodes(struct device_node *prev) } return np; } +EXPORT_SYMBOL(__of_find_all_nodes); /** * of_find_all_nodes - Get next node in global list -- 2.1.4 ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ----------------------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html