summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-11-03 14:36:54 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-11-03 19:15:45 +0100
commit2842e06f19b94145238c76f0beb7b3b93943467c (patch)
tree6e6d3d3b0312d48259b390beb2c5b0c58eddbfd7 /drivers/cpufreq
parent59fdc42793252852e1ca95d1355e9ed0fc2a0612 (diff)
downloadlwn-2842e06f19b94145238c76f0beb7b3b93943467c.tar.gz
lwn-2842e06f19b94145238c76f0beb7b3b93943467c.zip
cpufreq: SPEAr: Make read-only array sys_clk_src static
Don't populate the read-only array sys_clk_src on the stack but instead make it static and add in a missing const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/spear-cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c
index 7d0d62a06bf3..c6fdf019dbde 100644
--- a/drivers/cpufreq/spear-cpufreq.c
+++ b/drivers/cpufreq/spear-cpufreq.c
@@ -39,7 +39,7 @@ static struct clk *spear1340_cpu_get_possible_parent(unsigned long newfreq)
* In SPEAr1340, cpu clk's parent sys clk can take input from
* following sources
*/
- const char *sys_clk_src[] = {
+ static const char * const sys_clk_src[] = {
"sys_syn_clk",
"pll1_clk",
"pll2_clk",