device property: export set_secondary_fwnode() to modules
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Apr 2020 16:09:01 +0000 (19:09 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 Apr 2020 11:41:56 +0000 (14:41 +0300)
Some drivers when compiled as modules may need to set secondary firmware node.
Export set_secondary_fwnode() to make it possible without code duplication.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
drivers/base/core.c

index 139cdf7e73271a02182cf4f7cdba707ded7cce55..ada037b3be4599be682e0f74d4d2f338b2a04f35 100644 (file)
@@ -3891,6 +3891,7 @@ void set_secondary_fwnode(struct device *dev, struct fwnode_handle *fwnode)
        else
                dev->fwnode = fwnode;
 }
+EXPORT_SYMBOL_GPL(set_secondary_fwnode);
 
 /**
  * device_set_of_node_from_dev - reuse device-tree node of another device