OSDN Git Service

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)
commit3c9b8aaf95bb4de3d8ac9fd83d4aca2c97bd9f2a
tree652b38a29be128c42ed64dda883728baaad008a0
parent07afb6ace3bde4ffdce26befa6b2f38c5d708dd0
drivers/base/node: Avoid manual device_create_file() calls

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