diff options
author | Saravana Kannan <saravanak@google.com> | 2020-11-21 03:02:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-09 19:10:21 +0100 |
commit | 7b337cb3ebde384cba7405b61dfb84200bf623bf (patch) | |
tree | cf895b0d4122e4e9b0d058953a4ed2460e8e7e40 /drivers/of/dynamic.c | |
parent | driver core: Add fwnode_init() (diff) | |
download | linux-7b337cb3ebde384cba7405b61dfb84200bf623bf.tar.xz linux-7b337cb3ebde384cba7405b61dfb84200bf623bf.zip |
driver core: Add fwnode link support
Add support for creating supplier-consumer links between fwnodes. It is
intended for internal use the driver core and generic firmware support
code (eg. Device Tree, ACPI), so it is simple by design and the API
provided is limited.
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20201121020232.908850-9-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/of/dynamic.c')
-rw-r--r-- | drivers/of/dynamic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c index fe64430b438a..9a824decf61f 100644 --- a/drivers/of/dynamic.c +++ b/drivers/of/dynamic.c @@ -356,6 +356,7 @@ void of_node_release(struct kobject *kobj) property_list_free(node->properties); property_list_free(node->deadprops); + fwnode_links_purge(of_fwnode_handle(node)); kfree(node->full_name); kfree(node->data); |