Thread (1 message) 1 message, 1 author, 2017-01-18

Re: [PATCH] of: Export of_node_ktype

From: Frank Rowand <hidden>
Date: 2017-01-18 20:30:20

Hi Alexander,

On 01/18/17 01:37, Alexander Sverdlin wrote:
quoted hunk
This is necessary for of_node_init() to work in the modules.

Signed-off-by: Alexander Sverdlin <redacted>
Cc: Rob Herring <redacted>
Cc: Frank Rowand <redacted>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
---
 drivers/of/base.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index d4bea3c797d6..2eb4dea62b84 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -106,6 +106,7 @@ static void of_node_release(struct kobject *kobj)
 struct kobj_type of_node_ktype = {
 	.release = of_node_release,
 };
+EXPORT_SYMBOL_GPL(of_node_ktype);
 
 static ssize_t of_node_property_read(struct file *filp, struct kobject *kobj,
 				struct bin_attribute *bin_attr, char *buf,
Why does your module need to call of_node_init() directly?

Thanks,

Frank
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help