Messages in this thread Patch in this message | | | From | Murali Nalajala <> | Subject | [PATCH] base: soc: Export soc_device_to_device API | Date | Thu, 19 Sep 2019 14:13:44 -0700 |
| |
If the soc drivers want to add custom sysfs entries it needs to access "dev" field in "struct soc_device". This can be achieved by "soc_device_to_device" API. Soc drivers which are built as a module they need above API to be exported. Otherwise one can observe compilation issues.
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org> --- drivers/base/soc.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/base/soc.c b/drivers/base/soc.c index 7c0c5ca..4ad52f6 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c @@ -41,6 +41,7 @@ struct device *soc_device_to_device(struct soc_device *soc_dev) { return &soc_dev->dev; } +EXPORT_SYMBOL_GPL(soc_device_to_device); static umode_t soc_attribute_mode(struct kobject *kobj, struct attribute *attr, -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
| |