Thread (8 messages) 8 messages, 3 authors, 2009-08-25

Re: [PATCH 2/3] Add rfkill support to compal-laptop

From: Alan Jenkins <hidden>
Date: 2009-08-20 08:52:46
Also in: linux-acpi, lkml

On 8/19/09, Mario Limonciello [off-list ref] wrote:
Johannes:

Johannes Berg wrote:
quoted
On Wed, 2009-08-19 at 13:36 -0500, Mario Limonciello wrote:




Isn't that missing sysfs_remove_group()?

johannes
The third patch in the (updated) series is dropping the sysfs bits, so
sysfs_remove_group is removed there.
That's not ideal.  Each patch should stand on its own; it's bad form
to introduce a bug in one patch and fix it in the next one.  Even
something obscure like omitting to free the sysfs group when
setup_rfkill() fails.

I would suggest merging these two patches into one. That would avoid
adding sysfs_remove_group() in this patch, just to remove it in the
next one.  It also avoids the question in this patch, of what happens
to the rfkill interface if you write to the sysfs file.

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help