Re: [PATCH] Allow sysfs_remove_group() to be called on non-added groups

2007-10-22 Thread Michael Ellerman
On 9/13/07, Michael Ellerman [EMAIL PROTECTED] wrote: It would be nice to be able to do: for_each_thing(thing) { error = sysfs_create_group(thing-kobj, attrs); if (error) { for_each_thing(thing) sysfs_remove_group(thing-kobj, attrs);

[PATCH] Allow sysfs_remove_group() to be called on non-added groups

2007-10-22 Thread Michael Ellerman
It would be nice to be able to do: for_each_thing(thing) { error = sysfs_create_group(thing-kobj, attrs); if (error) { for_each_thing(thing) sysfs_remove_group(thing-kobj, attrs); return error; } } But there's a

[PATCH] Allow sysfs_remove_group() to be called on non-added groups

2007-09-12 Thread Michael Ellerman
It would be nice to be able to do: for_each_thing(thing) { error = sysfs_create_group(thing-kobj, attrs); if (error) { for_each_thing(thing) sysfs_remove_group(thing-kobj, attrs); return error; } } But there's a