Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: qcom: Stop setting cpufreq_driver->attr field

The cpufreq core now handles this for basic attributes, including boost
frequencies, the driver can skip setting them.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>

-7
-7
drivers/cpufreq/qcom-cpufreq-hw.c
··· 595 595 enable_irq(data->throttle_irq); 596 596 } 597 597 598 - static struct freq_attr *qcom_cpufreq_hw_attr[] = { 599 - &cpufreq_freq_attr_scaling_available_freqs, 600 - &cpufreq_freq_attr_scaling_boost_freqs, 601 - NULL 602 - }; 603 - 604 598 static struct cpufreq_driver cpufreq_qcom_hw_driver = { 605 599 .flags = CPUFREQ_NEED_INITIAL_FREQ_CHECK | 606 600 CPUFREQ_HAVE_GOVERNOR_PER_POLICY | ··· 609 615 .register_em = cpufreq_register_em_with_opp, 610 616 .fast_switch = qcom_cpufreq_hw_fast_switch, 611 617 .name = "qcom-cpufreq-hw", 612 - .attr = qcom_cpufreq_hw_attr, 613 618 .ready = qcom_cpufreq_ready, 614 619 }; 615 620