* [PATCH] of: Export of_node_ktype
@ 2017-01-18 9:37 Alexander Sverdlin
[not found] ` <20170118093733.32152-1-alexander.sverdlin-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Sverdlin @ 2017-01-18 9:37 UTC (permalink / raw)
Cc: Alexander Sverdlin, Rob Herring, Frank Rowand,
devicetree-u79uwXL29TY76Z2rM5mHXA
This is necessary for of_node_init() to work in the modules.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Frank Rowand <frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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,
--
2.11.0
--
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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] of: Export of_node_ktype
@ 2018-07-13 15:14 Alexander Sverdlin
2018-07-13 16:05 ` Frank Rowand
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Sverdlin @ 2018-07-13 15:14 UTC (permalink / raw)
To: devicetree; +Cc: Alexander Sverdlin, Rob Herring, Frank Rowand
This is necessary for of_node_init() to work in modules.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
---
drivers/of/kobj.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/of/kobj.c b/drivers/of/kobj.c
index 7a0a18980b98..6348174ff615 100644
--- a/drivers/of/kobj.c
+++ b/drivers/of/kobj.c
@@ -27,6 +27,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,
--
2.18.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] of: Export of_node_ktype
2018-07-13 15:14 Alexander Sverdlin
@ 2018-07-13 16:05 ` Frank Rowand
2018-07-13 16:11 ` Alexander Sverdlin
0 siblings, 1 reply; 6+ messages in thread
From: Frank Rowand @ 2018-07-13 16:05 UTC (permalink / raw)
To: Alexander Sverdlin, devicetree; +Cc: Rob Herring
Hi Alexander,
On 07/13/18 08:14, Alexander Sverdlin wrote:
> This is necessary for of_node_init() to work in modules.
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
> ---
> drivers/of/kobj.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/of/kobj.c b/drivers/of/kobj.c
> index 7a0a18980b98..6348174ff615 100644
> --- a/drivers/of/kobj.c
> +++ b/drivers/of/kobj.c
> @@ -27,6 +27,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,
>
I would not expect a generic module to need of_node_init(). So digging a
little bit deeper, what module needs of_node_init() and how is it using it?
Thanks,
Frank
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] of: Export of_node_ktype
2018-07-13 16:05 ` Frank Rowand
@ 2018-07-13 16:11 ` Alexander Sverdlin
2018-07-13 20:32 ` Frank Rowand
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Sverdlin @ 2018-07-13 16:11 UTC (permalink / raw)
To: Frank Rowand, devicetree; +Cc: Rob Herring
Hello Frank,
On 13/07/18 18:05, Frank Rowand wrote:
> I would not expect a generic module to need of_node_init(). So digging a
> little bit deeper, what module needs of_node_init() and how is it using it?
legacy out-of-tree modules which were implementing DT overlay functionality in pre-overlay
times.
--
Best regards,
Alexander Sverdlin.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] of: Export of_node_ktype
2018-07-13 16:11 ` Alexander Sverdlin
@ 2018-07-13 20:32 ` Frank Rowand
0 siblings, 0 replies; 6+ messages in thread
From: Frank Rowand @ 2018-07-13 20:32 UTC (permalink / raw)
To: Alexander Sverdlin, devicetree; +Cc: Rob Herring
On 07/13/18 09:11, Alexander Sverdlin wrote:
> Hello Frank,
>
> On 13/07/18 18:05, Frank Rowand wrote:
>> I would not expect a generic module to need of_node_init(). So digging a
>> little bit deeper, what module needs of_node_init() and how is it using it?
>
> legacy out-of-tree modules which were implementing DT overlay functionality in pre-overlay
> times.
Thanks for the description.
The export should also stay out of tree.
-Frank
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-07-13 20:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-18 9:37 [PATCH] of: Export of_node_ktype Alexander Sverdlin
[not found] ` <20170118093733.32152-1-alexander.sverdlin-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2017-01-18 20:30 ` Frank Rowand
2018-07-13 15:14 Alexander Sverdlin
2018-07-13 16:05 ` Frank Rowand
2018-07-13 16:11 ` Alexander Sverdlin
2018-07-13 20:32 ` Frank Rowand
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.