mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
cpufreq: remove cpufreq_sysfs_{create|remove}_file()
They don't do anything special now, remove the unnecessary wrapper. Reviewed-by: Saravana Kannan <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
8eec1020f0
commit
c82bd44437
2 changed files with 5 additions and 19 deletions
|
|
@ -873,21 +873,6 @@ static struct kobj_type ktype_cpufreq = {
|
|||
.release = cpufreq_sysfs_release,
|
||||
};
|
||||
|
||||
struct kobject *cpufreq_global_kobject;
|
||||
EXPORT_SYMBOL(cpufreq_global_kobject);
|
||||
|
||||
int cpufreq_sysfs_create_file(const struct attribute *attr)
|
||||
{
|
||||
return sysfs_create_file(cpufreq_global_kobject, attr);
|
||||
}
|
||||
EXPORT_SYMBOL(cpufreq_sysfs_create_file);
|
||||
|
||||
void cpufreq_sysfs_remove_file(const struct attribute *attr)
|
||||
{
|
||||
sysfs_remove_file(cpufreq_global_kobject, attr);
|
||||
}
|
||||
EXPORT_SYMBOL(cpufreq_sysfs_remove_file);
|
||||
|
||||
static int add_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu)
|
||||
{
|
||||
struct device *cpu_dev;
|
||||
|
|
@ -2390,7 +2375,7 @@ static int create_boost_sysfs_file(void)
|
|||
if (!cpufreq_driver->set_boost)
|
||||
cpufreq_driver->set_boost = cpufreq_boost_set_sw;
|
||||
|
||||
ret = cpufreq_sysfs_create_file(&boost.attr);
|
||||
ret = sysfs_create_file(cpufreq_global_kobject, &boost.attr);
|
||||
if (ret)
|
||||
pr_err("%s: cannot register global BOOST sysfs file\n",
|
||||
__func__);
|
||||
|
|
@ -2401,7 +2386,7 @@ static int create_boost_sysfs_file(void)
|
|||
static void remove_boost_sysfs_file(void)
|
||||
{
|
||||
if (cpufreq_boost_supported())
|
||||
cpufreq_sysfs_remove_file(&boost.attr);
|
||||
sysfs_remove_file(cpufreq_global_kobject, &boost.attr);
|
||||
}
|
||||
|
||||
int cpufreq_enable_boost_support(void)
|
||||
|
|
@ -2549,6 +2534,9 @@ static struct syscore_ops cpufreq_syscore_ops = {
|
|||
.shutdown = cpufreq_suspend,
|
||||
};
|
||||
|
||||
struct kobject *cpufreq_global_kobject;
|
||||
EXPORT_SYMBOL(cpufreq_global_kobject);
|
||||
|
||||
static int __init cpufreq_core_init(void)
|
||||
{
|
||||
if (cpufreq_disabled())
|
||||
|
|
|
|||
Loading…
Reference in a new issue