Merge branch 'topic/docs-next' into v4l_for_linus
[sfrench/cifs-2.6.git] / drivers / cpufreq / ppc_cbe_cpufreq_pmi.c
index 7c4cd5c634f23006eaba8f253c04e27b93ed91e3..dc112481a40841e67fdc5c9ffbed0effc5d54ce1 100644 (file)
@@ -94,7 +94,7 @@ static int pmi_notifier(struct notifier_block *nb,
                                       unsigned long event, void *data)
 {
        struct cpufreq_policy *policy = data;
-       struct cpufreq_frequency_table *cbe_freqs;
+       struct cpufreq_frequency_table *cbe_freqs = policy->freq_table;
        u8 node;
 
        /* Should this really be called for CPUFREQ_ADJUST and CPUFREQ_NOTIFY
@@ -103,7 +103,6 @@ static int pmi_notifier(struct notifier_block *nb,
        if (event == CPUFREQ_START)
                return 0;
 
-       cbe_freqs = cpufreq_frequency_get_table(policy->cpu);
        node = cbe_cpu_to_node(policy->cpu);
 
        pr_debug("got notified, event=%lu, node=%u\n", event, node);