diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-05-02 16:31:50 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-05-02 16:31:50 +1000 |
commit | 6040e3cd36791fef3e87a962556d16a89b4a1931 (patch) | |
tree | 4434b3329bf8b3ff66c333639849cc69719ecd43 /samples | |
parent | 69f12945e8ce568f77d9201c5b0f23f70da4101b (diff) | |
parent | 391c0325cc5f9e2daf9117825714d777b3595a42 (diff) | |
download | linux-next-6040e3cd36791fef3e87a962556d16a89b4a1931.tar.gz |
Merge remote-tracking branch 'driver-core/driver-core-next'
Diffstat (limited to 'samples')
-rw-r--r-- | samples/kobject/kset-example.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/kobject/kset-example.c b/samples/kobject/kset-example.c index 401328fd687d..c8010f126808 100644 --- a/samples/kobject/kset-example.c +++ b/samples/kobject/kset-example.c @@ -178,6 +178,7 @@ static struct attribute *foo_default_attrs[] = { &bar_attribute.attr, NULL, /* need to NULL terminate the list of attributes */ }; +ATTRIBUTE_GROUPS(foo_default); /* * Our own ktype for our kobjects. Here we specify our sysfs ops, the @@ -187,7 +188,7 @@ static struct attribute *foo_default_attrs[] = { static struct kobj_type foo_ktype = { .sysfs_ops = &foo_sysfs_ops, .release = foo_release, - .default_attrs = foo_default_attrs, + .default_groups = foo_default_groups, }; static struct kset *example_kset; |