]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: qcom: ice: make of_qcom_ice_get() static
authorTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 17 Jan 2025 14:18:53 +0000 (14:18 +0000)
committerBjorn Andersson <andersson@kernel.org>
Fri, 14 Feb 2025 17:37:16 +0000 (11:37 -0600)
There's no consumer calling it left, make the method static.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20250117-qcom-ice-fix-dev-leak-v2-4-1ffa5b6884cb@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/ice.c
include/soc/qcom/ice.h

index 79e04bff3e331b91b08b41b9532d6866d798d466..2310afa77b76b0da1679a50248d60830b1e5be8c 100644 (file)
@@ -262,7 +262,7 @@ static struct qcom_ice *qcom_ice_create(struct device *dev,
  * Return: ICE pointer on success, NULL if there is no ICE data provided by the
  * consumer or ERR_PTR() on error.
  */
-struct qcom_ice *of_qcom_ice_get(struct device *dev)
+static struct qcom_ice *of_qcom_ice_get(struct device *dev)
 {
        struct platform_device *pdev = to_platform_device(dev);
        struct qcom_ice *ice;
@@ -323,7 +323,6 @@ struct qcom_ice *of_qcom_ice_get(struct device *dev)
 
        return ice;
 }
-EXPORT_SYMBOL_GPL(of_qcom_ice_get);
 
 static void qcom_ice_put(const struct qcom_ice *ice)
 {
index d5f6a228df6594a886003950a1e94c67aabe1db4..fdf1b5c21eb9acf58885521d657f43c5f3340985 100644 (file)
@@ -33,7 +33,6 @@ int qcom_ice_program_key(struct qcom_ice *ice,
                         const u8 crypto_key[], u8 data_unit_size,
                         int slot);
 int qcom_ice_evict_key(struct qcom_ice *ice, int slot);
-struct qcom_ice *of_qcom_ice_get(struct device *dev);
 struct qcom_ice *devm_of_qcom_ice_get(struct device *dev);
 
 #endif /* __QCOM_ICE_H__ */