X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fbase%2Fattribute_container.c;h=8fc200b2e2c0a3ceed42364b467a2ea26b574fcf;hb=48de8cb7847d040c8892701c1ff3c55eff1f46b4;hp=b9cda053d3c0c20182a264c6da5424fe872c6e5e;hpb=97d61b8e3aef163a75f80f4762794c154572293d;p=karo-tx-linux.git diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c index b9cda053d3c0..8fc200b2e2c0 100644 --- a/drivers/base/attribute_container.c +++ b/drivers/base/attribute_container.c @@ -328,6 +328,7 @@ attribute_container_add_attrs(struct device *classdev) return sysfs_create_group(&classdev->kobj, cont->grp); for (i = 0; attrs[i]; i++) { + sysfs_attr_init(&attrs[i]->attr); error = device_create_file(classdev, attrs[i]); if (error) return error;