On Thu, Nov 3, 2016 at 12:24 AM, Laxman Dewangan <ldewangan@xxxxxxxxxx> wrote: > > On Thursday 03 November 2016 09:09 AM, Rob Herring wrote: >> >> On Fri, Oct 28, 2016 at 6:28 AM, Laxman Dewangan <ldewangan@xxxxxxxxxx> >> wrote: >>> >>> 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. >> >> What driver needs this? This isn't really a function I'd expect drivers to >> use. >> > > I am using the for loop for each node using the macro > for_each_of_allnodes_from() which is define as > > #define for_each_of_allnodes_from(from, dn) \ > for (dn = __of_find_all_nodes(from); dn; dn = > __of_find_all_nodes(dn)) > > and this is using the above APIs. And then what driver is using this define? Rob -- 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