[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 B

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

2007-10-22 Thread Greg KH
On Tue, Oct 23, 2007 at 12:02:39PM +1000, Michael Ellerman wrote: > 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) { > >

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->kob

[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 B