diff options
author | Vinod Koul <vkoul@kernel.org> | 2019-07-24 04:05:12 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 12:27:46 +0200 |
commit | fe120e1253bc81e0914ad8e7e21aebca3f8ee8c1 (patch) | |
tree | b1c4de34279f8d75efc5f876a13fad7af0a21d30 | |
parent | a8d7151b7f3a6bee52ee17e690ca5f1f74684ff3 (diff) | |
download | linux-stable-fe120e1253bc81e0914ad8e7e21aebca3f8ee8c1.tar.gz linux-stable-fe120e1253bc81e0914ad8e7e21aebca3f8ee8c1.tar.bz2 linux-stable-fe120e1253bc81e0914ad8e7e21aebca3f8ee8c1.zip |
base: soc: Export soc_device_register/unregister APIs
[ Upstream commit f7ccc7a397cf2ef64aebb2f726970b93203858d2 ]
Qcom Socinfo driver can be built as a module, so
export these two APIs.
Tested-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Vaishali Thakkar <vaishali.thakkar@linaro.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/base/soc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/soc.c b/drivers/base/soc.c index 75b98aad6faf..84242e6b2897 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c @@ -146,6 +146,7 @@ out2: out1: return ERR_PTR(ret); } +EXPORT_SYMBOL_GPL(soc_device_register); /* Ensure soc_dev->attr is freed prior to calling soc_device_unregister. */ void soc_device_unregister(struct soc_device *soc_dev) @@ -154,6 +155,7 @@ void soc_device_unregister(struct soc_device *soc_dev) device_unregister(&soc_dev->dev); } +EXPORT_SYMBOL_GPL(soc_device_unregister); static int __init soc_bus_register(void) { |