Skip to content

Commit

Permalink
[CPUFREQ] Remove the pm_message_t argument from driver suspend
Browse files Browse the repository at this point in the history
None of the existing cpufreq drivers uses the second argument of
its .suspend() callback (which isn't useful anyway), so remove it.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Rafael J. Wysocki authored and Dave Jones committed Mar 16, 2011
1 parent 326c86d commit 7ca64e2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions arch/arm/mach-s5pv210/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,7 @@ static int s5pv210_target(struct cpufreq_policy *policy,
}

#ifdef CONFIG_PM
static int s5pv210_cpufreq_suspend(struct cpufreq_policy *policy,
pm_message_t pmsg)
static int s5pv210_cpufreq_suspend(struct cpufreq_policy *policy)
{
return 0;
}
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-s5pv310/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,7 @@ static int s5pv310_target(struct cpufreq_policy *policy,
}

#ifdef CONFIG_PM
static int s5pv310_cpufreq_suspend(struct cpufreq_policy *policy,
pm_message_t pmsg)
static int s5pv310_cpufreq_suspend(struct cpufreq_policy *policy)
{
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-s3c24xx/cpu-freq.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ static int s3c_cpufreq_verify(struct cpufreq_policy *policy)
static struct cpufreq_frequency_table suspend_pll;
static unsigned int suspend_freq;

static int s3c_cpufreq_suspend(struct cpufreq_policy *policy, pm_message_t pmsg)
static int s3c_cpufreq_suspend(struct cpufreq_policy *policy)
{
suspend_pll.frequency = clk_get_rate(_clk_mpll);
suspend_pll.index = __raw_readl(S3C2410_MPLLCON);
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powermac/cpufreq_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ static u32 read_gpio(struct device_node *np)
return offset;
}

static int pmac_cpufreq_suspend(struct cpufreq_policy *policy, pm_message_t pmsg)
static int pmac_cpufreq_suspend(struct cpufreq_policy *policy)
{
/* Ok, this could be made a bit smarter, but let's be robust for now. We
* always force a speed change to high speed before sleep, to make sure
Expand Down
2 changes: 1 addition & 1 deletion drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ static int cpufreq_suspend(struct sys_device *sysdev, pm_message_t pmsg)
goto out;

if (cpufreq_driver->suspend) {
ret = cpufreq_driver->suspend(cpu_policy, pmsg);
ret = cpufreq_driver->suspend(cpu_policy);
if (ret)
printk(KERN_ERR "cpufreq: suspend failed in ->suspend "
"step on CPU %u\n", cpu_policy->cpu);
Expand Down
2 changes: 1 addition & 1 deletion include/linux/cpufreq.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ struct cpufreq_driver {
int (*bios_limit) (int cpu, unsigned int *limit);

int (*exit) (struct cpufreq_policy *policy);
int (*suspend) (struct cpufreq_policy *policy, pm_message_t pmsg);
int (*suspend) (struct cpufreq_policy *policy);
int (*resume) (struct cpufreq_policy *policy);
struct freq_attr **attr;
};
Expand Down

0 comments on commit 7ca64e2

Please sign in to comment.