diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2017-09-11 12:48:16 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-09-11 12:49:35 +0800 |
commit | b67922a4ab25a5d14f11d23aebb3a59819f5934d (patch) | |
tree | 79333c11bfe470d72c4f2fe36d45a3437a10b74a /plat/freescale | |
parent | ef3f0fc559c355038872549ee2deac32418e42a4 (diff) |
freescale: cpufreq: fix build error using poky tool chain
Fix below build error on i.MX8QXP when using poky
tool chain:
CC plat/freescale/common/cpufreq.c
plat/freescale/common/cpufreq.c:27:18:
error: "ap_cluster_index" defined but not used
[-Werror=unused-const-variable=]
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/freescale')
-rw-r--r-- | plat/freescale/common/cpufreq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/freescale/common/cpufreq.c b/plat/freescale/common/cpufreq.c index 75f005dd..5a53e1ce 100644 --- a/plat/freescale/common/cpufreq.c +++ b/plat/freescale/common/cpufreq.c @@ -24,9 +24,11 @@ extern sc_ipc_t ipc_handle; +#ifdef PLAT_IMX8QM const static int ap_cluster_index[2] = { SC_R_A53, SC_R_A72, }; +#endif static void imx_cpufreq_set_target(uint32_t cluster_id, unsigned long freq) { |