cpufreq: s3c2440: Staticize local variables
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 Jan 2014 09:27:36 +0000 (14:57 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 6 Jan 2014 00:18:33 +0000 (01:18 +0100)
Local variables used only in this file are made static.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/s3c2440-cpufreq.c

index 717ef04ec90edbd9ea4f039b3d307b34a25c6184..f84ed10755b57b7af8cfaa8acb5c212afac7c156 100644 (file)
@@ -53,7 +53,7 @@ static inline int within_khz(unsigned long a, unsigned long b)
  * specified in @cfg. The values are stored in @cfg for later use
  * by the relevant set routine if the request settings can be reached.
  */
-int s3c2440_cpufreq_calcdivs(struct s3c_cpufreq_config *cfg)
+static int s3c2440_cpufreq_calcdivs(struct s3c_cpufreq_config *cfg)
 {
        unsigned int hdiv, pdiv;
        unsigned long hclk, fclk, armclk;
@@ -240,7 +240,7 @@ static int s3c2440_cpufreq_calctable(struct s3c_cpufreq_config *cfg,
        return ret;
 }
 
-struct s3c_cpufreq_info s3c2440_cpufreq_info = {
+static struct s3c_cpufreq_info s3c2440_cpufreq_info = {
        .max            = {
                .fclk   = 400000000,
                .hclk   = 133333333,