#define pr_fmt(fmt) …
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/regulator/consumer.h>
#include <linux/module.h>
static struct regulator *vddarm;
static unsigned long regulator_latency;
struct s3c64xx_dvfs { … };
static struct s3c64xx_dvfs s3c64xx_dvfs_table[] = …;
static struct cpufreq_frequency_table s3c64xx_freq_table[] = …;
static int s3c64xx_cpufreq_set_target(struct cpufreq_policy *policy,
unsigned int index)
{ … }
#ifdef CONFIG_REGULATOR
static void s3c64xx_cpufreq_config_regulator(void)
{ … }
#endif
static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy)
{ … }
static struct cpufreq_driver s3c64xx_cpufreq_driver = …;
static int __init s3c64xx_cpufreq_init(void)
{ … }
module_init(…) …;