From: Cornelia Huck <[email protected]> Return the return value of sysfs_create_group() in topology_add_dev(). Signed-off-by: Cornelia Huck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> --- drivers/base/topology.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/base/topology.c b/drivers/base/topology.c index 3ef9d51..28dccb7 100644 --- a/drivers/base/topology.c +++ b/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) -- 1.4.2.4 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [GIT PATCH] Driver Core fixes for 2.6.19-rc2
- From: Greg KH <[email protected]>
- [PATCH 1/16] Documentation: feature-removal-schedule typo
- From: Greg KH <[email protected]>
- [PATCH 2/16] Driver core: plug device probe memory leak
- From: Greg KH <[email protected]>
- [PATCH 3/16] Fix dev_printk() is now GPL-only
- From: Greg KH <[email protected]>
- [PATCH 4/16] HOWTO: bug report addition
- From: Greg KH <[email protected]>
- [PATCH 5/16] sysfs: remove duplicated dput in sysfs_update_file
- From: Greg KH <[email protected]>
- [PATCH 6/16] sysfs: update obsolete comment in sysfs_update_file
- From: Greg KH <[email protected]>
- [PATCH 7/16] driver core fixes: sysfs_create_link() retval check in class.c
- From: Greg KH <[email protected]>
- [PATCH 8/16] driver core fixes: bus_add_attrs() retval check
- From: Greg KH <[email protected]>
- [PATCH 9/16] driver core fixes: bus_add_device() cleanup on error
- From: Greg KH <[email protected]>
- [PATCH 10/16] driver core fixes: device_add() cleanup on error
- From: Greg KH <[email protected]>
- [PATCH 11/16] driver core fixes: device_create_file() retval check in dmapool.c
- From: Greg KH <[email protected]>
- [GIT PATCH] Driver Core fixes for 2.6.19-rc2
- Prev by Date: [PATCH 11/16] driver core fixes: device_create_file() retval check in dmapool.c
- Next by Date: [PATCH 12/15] aoe: remove sysfs comment
- Previous by thread: [PATCH 11/16] driver core fixes: device_create_file() retval check in dmapool.c
- Next by thread: [PATCH 13/16] Driver core: Don't leak 'old_class_name' in drivers/base/core.c::device_rename()
- Index(es):