lkml.org 
[lkml]   [2021]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1] base: soc: export soc_device_to_device API
Date
From: Alice Guo <alice.guo@nxp.com>

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

Signed-off-by: Alice Guo <alice.guo@nxp.com>
---
drivers/base/soc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index 0af5363a582c..6b3db25611ee 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,
--
2.17.1
\
 
 \ /
  Last update: 2021-07-13 10:13    [W:0.038 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site