Commit 221c324a authored by Cornelia Huck's avatar Cornelia Huck Committed by Greg Kroah-Hartman

driver core fixes: sysfs_create_group() retval in topology.c

Return the return value of sysfs_create_group() in topology_add_dev().
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 141ecc53
...@@ -97,8 +97,7 @@ static struct attribute_group topology_attr_group = { ...@@ -97,8 +97,7 @@ static struct attribute_group topology_attr_group = {
/* Add/Remove cpu_topology interface for CPU device */ /* Add/Remove cpu_topology interface for CPU device */
static int __cpuinit topology_add_dev(struct sys_device * sys_dev) static int __cpuinit topology_add_dev(struct sys_device * sys_dev)
{ {
sysfs_create_group(&sys_dev->kobj, &topology_attr_group); return sysfs_create_group(&sys_dev->kobj, &topology_attr_group);
return 0;
} }
static int __cpuinit topology_remove_dev(struct sys_device * sys_dev) static int __cpuinit topology_remove_dev(struct sys_device * sys_dev)
......
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