Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: qcom: ice: make of_qcom_ice_get() static

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>

authored by

Tudor Ambarus and committed by
Bjorn Andersson
1e9e40fc ded40f32

+1 -3
+1 -2
drivers/soc/qcom/ice.c
··· 262 262 * Return: ICE pointer on success, NULL if there is no ICE data provided by the 263 263 * consumer or ERR_PTR() on error. 264 264 */ 265 - struct qcom_ice *of_qcom_ice_get(struct device *dev) 265 + static struct qcom_ice *of_qcom_ice_get(struct device *dev) 266 266 { 267 267 struct platform_device *pdev = to_platform_device(dev); 268 268 struct qcom_ice *ice; ··· 323 323 324 324 return ice; 325 325 } 326 - EXPORT_SYMBOL_GPL(of_qcom_ice_get); 327 326 328 327 static void qcom_ice_put(const struct qcom_ice *ice) 329 328 {
-1
include/soc/qcom/ice.h
··· 33 33 const u8 crypto_key[], u8 data_unit_size, 34 34 int slot); 35 35 int qcom_ice_evict_key(struct qcom_ice *ice, int slot); 36 - struct qcom_ice *of_qcom_ice_get(struct device *dev); 37 36 struct qcom_ice *devm_of_qcom_ice_get(struct device *dev); 38 37 39 38 #endif /* __QCOM_ICE_H__ */