kernel/samples/kobject/kset-example.c
.. .. @@ -178,6 +178,7 @@ 178 178 &bar_attribute.attr, 179 179 NULL, /* need to NULL terminate the list of attributes */ 180 180 }; 181 +ATTRIBUTE_GROUPS(foo_default);181 182 182 183 /* 183 184 * Our own ktype for our kobjects. Here we specify our sysfs ops, the .. .. @@ -187,7 +188,7 @@ 187 188 static struct kobj_type foo_ktype = { 188 189 .sysfs_ops = &foo_sysfs_ops, 189 190 .release = foo_release, 190 - .default_attrs = foo_default_attrs,191 + .default_groups = foo_default_groups,191 192 }; 192 193 193 194 static struct kset *example_kset;