From: Vinod Koul Date: Tue, 23 Jul 2019 22:35:12 +0000 (+0530) Subject: base: soc: Export soc_device_register/unregister APIs X-Git-Tag: v5.4-rc1~186^2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7ccc7a397cf2ef64aebb2f726970b93203858d2;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Vinod Koul Signed-off-by: Vaishali Thakkar Reviewed-by: Greg Kroah-Hartman Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- diff --git a/drivers/base/soc.c b/drivers/base/soc.c index b0933b9..7c0c5ca 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c @@ -164,6 +164,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) @@ -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) {