From 25bee27f1721bcada2e78d1d55ef644995d101a4 Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Thu, 5 Dec 2019 16:55:45 -0800 Subject: [PATCH] soc: qcom: ssr: Export find_subsys_device function Export the find_subsys() SSR API for the clients to get the subsystem device descriptor for a particular subsystem. Change-Id: I8aa2e7b8c44c3682c1dbf7e5fca75680c469690f Signed-off-by: Raghavendra Rao Ananta --- drivers/soc/qcom/subsystem_restart.c | 3 ++- include/soc/qcom/subsystem_restart.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/subsystem_restart.c b/drivers/soc/qcom/subsystem_restart.c index 2421d14fdac6..53d1f7c3191c 100644 --- a/drivers/soc/qcom/subsystem_restart.c +++ b/drivers/soc/qcom/subsystem_restart.c @@ -793,7 +793,7 @@ static int __find_subsys_device(struct device *dev, const void *data) return !strcmp(subsys->desc->name, data); } -static struct subsys_device *find_subsys_device(const char *str) +struct subsys_device *find_subsys_device(const char *str) { struct device *dev; @@ -804,6 +804,7 @@ static struct subsys_device *find_subsys_device(const char *str) __find_subsys_device); return dev ? to_subsys(dev) : NULL; } +EXPORT_SYMBOL(find_subsys_device); static int subsys_start(struct subsys_device *subsys) { diff --git a/include/soc/qcom/subsystem_restart.h b/include/soc/qcom/subsystem_restart.h index 54afc99d75ef..11878bbe7dbe 100644 --- a/include/soc/qcom/subsystem_restart.h +++ b/include/soc/qcom/subsystem_restart.h @@ -169,6 +169,7 @@ static inline void complete_shutdown_ack(struct subsys_desc *desc) { complete(&desc->shutdown_ack); } +struct subsys_device *find_subsys_device(const char *str); #else static inline int subsystem_restart_dev(struct subsys_device *dev)