cpufreq: interactive: fix compile error kernel 6.1

drivers/cpufreq/cpufreq_interactive.c:1050:3: error: field designator
'default_attrs' does not refer to any field in type 'struct kobj_type'
        .default_attrs = interactive_attributes,
         ^
1 error generated.

Change-Id: I3d9ccc23a30f5be8bd10fd846f60c3611fb62a6f
Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
Liang Chen
2023-06-02 14:31:58 +08:00
committed by Tao Huang
parent a41b37cce2
commit bf5cd86041

View File

@@ -1031,7 +1031,7 @@ gov_attr_wo(boostpulse);
gov_attr_rw(boostpulse_duration);
gov_attr_rw(io_is_busy);
static struct attribute *interactive_attributes[] = {
static struct attribute *interactive_attrs[] = {
&target_loads.attr,
&above_hispeed_delay.attr,
&hispeed_freq.attr,
@@ -1045,9 +1045,10 @@ static struct attribute *interactive_attributes[] = {
&io_is_busy.attr,
NULL
};
ATTRIBUTE_GROUPS(interactive);
static struct kobj_type interactive_tunables_ktype = {
.default_attrs = interactive_attributes,
.default_groups = interactive_groups,
.sysfs_ops = &governor_sysfs_ops,
};