device_attributes: add sysfs_attr_init() for dynamic attributes
[linux-2.6.git] / drivers / macintosh / windfarm_core.c
index c092354..ce88979 100644 (file)
@@ -210,6 +210,7 @@ int wf_register_control(struct wf_control *new_ct)
        kref_init(&new_ct->ref);
        list_add(&new_ct->link, &wf_controls);
 
+       sysfs_attr_init(&new_ct->attr.attr);
        new_ct->attr.attr.name = new_ct->name;
        new_ct->attr.attr.mode = 0644;
        new_ct->attr.show = wf_show_control;