Messages in this thread Patch in this message | | | Date | Fri, 22 Sep 2006 11:37:32 +0200 | From | Cornelia Huck <> | Subject | [9/9] driver core fixes: sysfs_create_group() retval in topology.c |
| |
From: Cornelia Huck <cornelia.huck@de.ibm.com>
Return the return value of sysfs_create_group() in topology_add_dev().
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
--- drivers/base/topology.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6-CH.orig/drivers/base/topology.c +++ linux-2.6-CH/drivers/base/topology.c @@ -97,8 +97,7 @@ static struct attribute_group topology_a /* Add/Remove cpu_topology interface for CPU device */ static int __cpuinit topology_add_dev(struct sys_device * sys_dev) { - sysfs_create_group(&sys_dev->kobj, &topology_attr_group); - return 0; + return sysfs_create_group(&sys_dev->kobj, &topology_attr_group); } static int __cpuinit topology_remove_dev(struct sys_device * sys_dev) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |