Skip to contentSkip to conversation

base: soc: export soc_device_to_device API

PATCH In review Alice Guo (OSS) 2 participants 2 messages Jul 13, 2021 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base: soc: export soc_device_to_device API

From: Alice Guo <[email protected]>

Driver which uses soc_device_to_device needs to be built as a module, so export this API.

---
 drivers/base/soc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/base/soc.c +1 -0
index 0af5363a582c..6b3db25611ee 100644
@@ -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,
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 4 lines · Alice Guo (OSS)

From: Alice Guo <[email protected]>

Driver which uses soc_device_to_device needs to be built as a module, so export this API.

What in-kernel driver needs this? I have not seen any build errors, where were they reported?

thanks,

greg k-h