[CPUFREQ] Remove the pm_message_t argument from driver suspend
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 10 Mar 2011 20:13:05 +0000 (21:13 +0100)
committerDave Jones <davej@redhat.com>
Wed, 16 Mar 2011 21:54:33 +0000 (17:54 -0400)
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>
arch/arm/mach-s5pv210/cpufreq.c
arch/arm/mach-s5pv310/cpufreq.c
arch/arm/plat-s3c24xx/cpu-freq.c
arch/powerpc/platforms/powermac/cpufreq_32.c
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h

index a6f22920a2c20bd40fbdb9bfebbbb111af4f1fbc..22046e2f53c2a17d1a064f7257696551ff325677 100644 (file)
@@ -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;
 }
index b04cbc731128f7b0f2d348c4ff3e238a4b6b93ae..7c08ad7d88872d6f43b54d47f737328c1a0116da 100644 (file)
@@ -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;
 }
index 25a8fc7f512e64ea7b1fe77af32febc7b53bb212..eea75ff81d15a7765bfb8b01a72e505f8c03a4fb 100644 (file)
@@ -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);
index 415ca6d6b2739f9064d47d5abf116a800dbca324..04af5f48b4eb13c51c4c35f83307518fa0c328bb 100644 (file)
@@ -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
index 5cb4d09919d67f83d99f8bfb837e64c8a660bb46..0f17ad8585d7f7f7cce2344b2ccb1f9db99a406d 100644 (file)
@@ -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);
index f2fe598feb4e8dd959cd41805b59833443292698..9343dd3de858419de3b3a9569b3dde1d01e4d327 100644 (file)
@@ -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;
 };