Skip to content

Commit f7ccc7a

Browse files
vinodkoulandersson
authored andcommitted
base: soc: Export soc_device_register/unregister APIs
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>
1 parent 9aebf4d commit f7ccc7a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/base/soc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr
164164
out1:
165165
return ERR_PTR(ret);
166166
}
167+
EXPORT_SYMBOL_GPL(soc_device_register);
167168

168169
/* Ensure soc_dev->attr is freed prior to calling soc_device_unregister. */
169170
void soc_device_unregister(struct soc_device *soc_dev)
@@ -173,6 +174,7 @@ void soc_device_unregister(struct soc_device *soc_dev)
173174
device_unregister(&soc_dev->dev);
174175
early_soc_dev_attr = NULL;
175176
}
177+
EXPORT_SYMBOL_GPL(soc_device_unregister);
176178

177179
static int __init soc_bus_register(void)
178180
{

0 commit comments

Comments
 (0)