On 11/10/2013, Jungseok Lee <jays.lee@xxxxxxxxxxx> wrote: > This patch adds freq_attr to show a list of exynos5440 scaling > available frequencies through sysfs. Common exynos driver already > supports this attribute. > > Signed-off-by: Jungseok Lee <jays.lee@xxxxxxxxxxx> > --- > drivers/cpufreq/exynos5440-cpufreq.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/cpufreq/exynos5440-cpufreq.c > b/drivers/cpufreq/exynos5440-cpufreq.c > index 24df155..2cc4797 100644 > --- a/drivers/cpufreq/exynos5440-cpufreq.c > +++ b/drivers/cpufreq/exynos5440-cpufreq.c > @@ -345,6 +345,11 @@ static int exynos_cpufreq_cpu_exit(struct > cpufreq_policy *policy) > return 0; > } > > +static struct freq_attr *exynos_cpufreq_attr[] = { > + &cpufreq_freq_attr_scaling_available_freqs, > + NULL, > +}; > + > static struct cpufreq_driver exynos_driver = { > .flags = CPUFREQ_STICKY, > .verify = exynos_verify_speed, > @@ -353,6 +358,7 @@ static struct cpufreq_driver exynos_driver = { > .init = exynos_cpufreq_cpu_init, > .exit = exynos_cpufreq_cpu_exit, > .name = CPUFREQ_NAME, > + .attr = exynos_cpufreq_attr, > }; > > static const struct of_device_id exynos_cpufreq_match[] = { Use cpufreq_generic_attr instead from rafael's bleeding-edge branch -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html