summaryrefslogtreecommitdiff
path: root/drivers/of/of_private.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-10-05 03:30:53 +0300
committerRob Herring <robh@kernel.org>2017-10-16 21:37:37 +0300
commit4c2bb57400394e4ec631a42dcf637e925db6202e (patch)
tree3462331eb27a63fc40a0df60335f983e8c0ca6c8 /drivers/of/of_private.h
parent16bba30eab137aaa37538349c0a7496720e90c66 (diff)
downloadlinux-4c2bb57400394e4ec631a42dcf637e925db6202e.tar.xz
of: move kobj_to_device_node() into dynamic.c
The only user of kobj_to_device_node() is in dynamic.c, so move it there. This avoids having to make it conditional once kobject is configurable. Tested-by: Nicolas Pitre <nico@linaro.org> Reviewed-by: Frank Rowand <frowand.list@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/of_private.h')
-rw-r--r--drivers/of/of_private.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h
index 3ae12ffbf547..cc86a974f35f 100644
--- a/drivers/of/of_private.h
+++ b/drivers/of/of_private.h
@@ -35,12 +35,6 @@ extern struct mutex of_mutex;
extern struct list_head aliases_lookup;
extern struct kset *of_kset;
-
-static inline struct device_node *kobj_to_device_node(struct kobject *kobj)
-{
- return container_of(kobj, struct device_node, kobj);
-}
-
#if defined(CONFIG_OF_DYNAMIC)
extern int of_property_notify(int action, struct device_node *np,
struct property *prop, struct property *old_prop);