]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
base: soc: Export soc_device_register/unregister APIs
authorVinod Koul <vkoul@kernel.org>
Tue, 23 Jul 2019 22:35:12 +0000 (04:05 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 5 Aug 2019 21:56:31 +0000 (14:56 -0700)
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>
drivers/base/soc.c

index b0933b9fe67f2234db0c36a5ca5c9b298f3a0a1a..7c0c5ca5953d20b63b849ec537ba999a328f212a 100644 (file)
@@ -164,6 +164,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr
 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)
@@ -173,6 +174,7 @@ void soc_device_unregister(struct soc_device *soc_dev)
        device_unregister(&soc_dev->dev);
        early_soc_dev_attr = NULL;
 }
+EXPORT_SYMBOL_GPL(soc_device_unregister);
 
 static int __init soc_bus_register(void)
 {