drivers/base/node: Avoid manual device_create_file() calls
authorTakashi Iwai <tiwai@suse.de>
Thu, 29 Jan 2015 11:29:22 +0000 (12:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 12:42:55 +0000 (13:42 +0100)
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@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/node.c

Simple merge