Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 221dee28 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Revert "[CPUFREQ] constify cpufreq_driver where possible."



This reverts commit aeeddc14, which was
half-baked and broken.  It just resulted in compile errors, since
cpufreq_register_driver() still changes the 'driver_data' by setting
bits in the flags field.  So claiming it is 'const' _really_ doesn't
work.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6f8c480f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@ static int nforce2_cpu_exit(struct cpufreq_policy *policy)
	return 0;
}

static const struct cpufreq_driver nforce2_driver = {
static struct cpufreq_driver nforce2_driver = {
	.name = "nforce2",
	.verify = nforce2_verify,
	.target = nforce2_target,
+1 −1
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ static struct freq_attr* eps_attr[] = {
	NULL,
};

static const struct cpufreq_driver eps_driver = {
static struct cpufreq_driver eps_driver = {
	.verify		= eps_verify,
	.target		= eps_target,
	.init		= eps_cpu_init,
+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ static struct freq_attr* elanfreq_attr[] = {
};


static const struct cpufreq_driver elanfreq_driver = {
static struct cpufreq_driver elanfreq_driver = {
	.get		= elanfreq_get_cpu_frequency,
	.verify		= elanfreq_verify,
	.target		= elanfreq_target,
+1 −1
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ static int cpufreq_gx_cpu_init(struct cpufreq_policy *policy)
 * cpufreq_gx_init:
 *   MediaGX/Geode GX initialize cpufreq driver
 */
static const struct cpufreq_driver gx_suspmod_driver = {
static struct cpufreq_driver gx_suspmod_driver = {
	.get		= gx_get_cpuspeed,
	.verify		= cpufreq_gx_verify,
	.target		= cpufreq_gx_target,
+1 −1
Original line number Diff line number Diff line
@@ -821,7 +821,7 @@ static struct freq_attr* longhaul_attr[] = {
	NULL,
};

static const struct cpufreq_driver longhaul_driver = {
static struct cpufreq_driver longhaul_driver = {
	.verify	= longhaul_verify,
	.target	= longhaul_target,
	.get	= longhaul_get,
Loading