mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
d442790bbf
Currently, IPQ807x is using CPUFreq NVMEM for dealing with different SoC SKU-s having different frequency limits, and we are keeping the patches for it in ipq807x target. However, we managed to upstream a big cleanup of the driver in order to make it possible for other SMEM based targets to be added to CPUFreq NVMEM. IPQ806x will be using CPUFreq NVMEM and depends on these changes as well, so lets put them in generic backport to avoid code duplication. This replaces the older patches in ipq807x. Signed-off-by: Robert Marko <robimarko@gmail.com>
56 lines
1.7 KiB
Diff
56 lines
1.7 KiB
Diff
From 9f1bbff157a69db7684f5da2f73b2325c638a90e Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Fri, 26 May 2023 22:47:59 +0200
|
|
Subject: [PATCH] soc: qcom: smem: Switch to EXPORT_SYMBOL_GPL()
|
|
|
|
SMEM has been GPL licensed from the start, and there is no reason to use
|
|
EXPORT_SYMBOL() so switch to the GPL version.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
|
|
Reviewed-by: Trilok Soni <quic_tsoni@quicinc.com>
|
|
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
|
|
Link: https://lore.kernel.org/r/20230526204802.3081168-2-robimarko@gmail.com
|
|
---
|
|
drivers/soc/qcom/smem.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/soc/qcom/smem.c
|
|
+++ b/drivers/soc/qcom/smem.c
|
|
@@ -500,7 +500,7 @@ int qcom_smem_alloc(unsigned host, unsig
|
|
|
|
return ret;
|
|
}
|
|
-EXPORT_SYMBOL(qcom_smem_alloc);
|
|
+EXPORT_SYMBOL_GPL(qcom_smem_alloc);
|
|
|
|
static void *qcom_smem_get_global(struct qcom_smem *smem,
|
|
unsigned item,
|
|
@@ -674,7 +674,7 @@ void *qcom_smem_get(unsigned host, unsig
|
|
return ptr;
|
|
|
|
}
|
|
-EXPORT_SYMBOL(qcom_smem_get);
|
|
+EXPORT_SYMBOL_GPL(qcom_smem_get);
|
|
|
|
/**
|
|
* qcom_smem_get_free_space() - retrieve amount of free space in a partition
|
|
@@ -719,7 +719,7 @@ int qcom_smem_get_free_space(unsigned ho
|
|
|
|
return ret;
|
|
}
|
|
-EXPORT_SYMBOL(qcom_smem_get_free_space);
|
|
+EXPORT_SYMBOL_GPL(qcom_smem_get_free_space);
|
|
|
|
static bool addr_in_range(void __iomem *base, size_t size, void *addr)
|
|
{
|
|
@@ -770,7 +770,7 @@ phys_addr_t qcom_smem_virt_to_phys(void
|
|
|
|
return 0;
|
|
}
|
|
-EXPORT_SYMBOL(qcom_smem_virt_to_phys);
|
|
+EXPORT_SYMBOL_GPL(qcom_smem_virt_to_phys);
|
|
|
|
static int qcom_smem_get_sbl_version(struct qcom_smem *smem)
|
|
{
|