Merge tag 'sched-core-2022-03-22' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / kernel / sched / cpufreq_schedutil.c
index f68885d..3dbf351 100644 (file)
@@ -539,7 +539,7 @@ ATTRIBUTE_GROUPS(sugov);
 
 static void sugov_tunables_free(struct kobject *kobj)
 {
-       struct gov_attr_set *attr_set = container_of(kobj, struct gov_attr_set, kobj);
+       struct gov_attr_set *attr_set = to_gov_attr_set(kobj);
 
        kfree(to_sugov_tunables(attr_set));
 }