Re: [PATCH] drivers/base/node: Avoid manual device_create_file() calls

From: Greg Kroah-Hartman
Date: Thu Jan 29 2015 - 10:56:46 EST


On Thu, Jan 29, 2015 at 12:29:22PM +0100, Takashi Iwai wrote:
> Instead of manual calls of multiple device_create_file() and
> device_remove_file(), use the static attribute groups assigned to the
> new device. This also fixes the possible races, too.
>
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
> ---
> drivers/base/node.c | 34 ++++++++++++++++++++--------------
> 1 file changed, 20 insertions(+), 14 deletions(-)

Looks good, I'll queue this up soon, thanks for doing it.

greg k-h
--
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/