Skip to content

Commit 1e9e40f

Browse files
ambarusandersson
authored andcommitted
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>
1 parent ded40f3 commit 1e9e40f

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/soc/qcom/ice.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static struct qcom_ice *qcom_ice_create(struct device *dev,
262262
* Return: ICE pointer on success, NULL if there is no ICE data provided by the
263263
* consumer or ERR_PTR() on error.
264264
*/
265-
struct qcom_ice *of_qcom_ice_get(struct device *dev)
265+
static struct qcom_ice *of_qcom_ice_get(struct device *dev)
266266
{
267267
struct platform_device *pdev = to_platform_device(dev);
268268
struct qcom_ice *ice;
@@ -323,7 +323,6 @@ struct qcom_ice *of_qcom_ice_get(struct device *dev)
323323

324324
return ice;
325325
}
326-
EXPORT_SYMBOL_GPL(of_qcom_ice_get);
327326

328327
static void qcom_ice_put(const struct qcom_ice *ice)
329328
{

include/soc/qcom/ice.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ int qcom_ice_program_key(struct qcom_ice *ice,
3333
const u8 crypto_key[], u8 data_unit_size,
3434
int slot);
3535
int qcom_ice_evict_key(struct qcom_ice *ice, int slot);
36-
struct qcom_ice *of_qcom_ice_get(struct device *dev);
3736
struct qcom_ice *devm_of_qcom_ice_get(struct device *dev);
3837

3938
#endif /* __QCOM_ICE_H__ */

0 commit comments

Comments
 (0)