[9/9] driver core fixes: sysfs_create_group() retval in topology.c

From: Cornelia Huck
Date: Fri Sep 22 2006 - 05:39:54 EST


From: Cornelia Huck <cornelia.huck@xxxxxxxxxx>

Return the return value of sysfs_create_group() in topology_add_dev().

Signed-off-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx>

---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/