Commit 8b075122 authored by Arvind Yadav's avatar Arvind Yadav Committed by Greg Kroah-Hartman

staging: ccree: Remove a attribute group from a kobject

All attribute group created during sys_init_dir() should be removed
in sys_free_dir()
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a5eb2188
...@@ -162,8 +162,11 @@ static void sys_free_dir(struct sys_dir *sys_dir) ...@@ -162,8 +162,11 @@ static void sys_free_dir(struct sys_dir *sys_dir)
kfree(sys_dir->sys_dir_attr_list); kfree(sys_dir->sys_dir_attr_list);
if (sys_dir->sys_dir_kobj) if (sys_dir->sys_dir_kobj) {
sysfs_remove_group(sys_dir->sys_dir_kobj,
&sys_dir->sys_dir_attr_group);
kobject_put(sys_dir->sys_dir_kobj); kobject_put(sys_dir->sys_dir_kobj);
}
} }
int ssi_sysfs_init(struct kobject *sys_dev_obj, struct ssi_drvdata *drvdata) int ssi_sysfs_init(struct kobject *sys_dev_obj, struct ssi_drvdata *drvdata)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment