driver core: Add fwnode_init()
There are multiple locations in the kernel where a struct fwnode_handle is initialized. Add fwnode_init() so that we have one way of initializing a fwnode_handle. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20201121020232.908850-8-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c84b90909e
commit
01bb86b380
@@ -108,7 +108,7 @@ static inline void of_node_init(struct device_node *node)
|
||||
#if defined(CONFIG_OF_KOBJ)
|
||||
kobject_init(&node->kobj, &of_node_ktype);
|
||||
#endif
|
||||
node->fwnode.ops = &of_fwnode_ops;
|
||||
fwnode_init(&node->fwnode, &of_fwnode_ops);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_OF_KOBJ)
|
||||
|
||||
Reference in New Issue
Block a user