firmware: Avoid manual device_create_file() calls
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Feb 2015 14:18:07 +0000 (15:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 13:41:48 +0000 (14:41 +0100)
commit46239902ecddd4690b6d800da258d0ab65a5cb78
treea5d84db6300867e108f1aef7129ae919988eec30
parent8a7d95f95c95f396decbd4cda6d4903fc4664946
firmware: Avoid manual device_create_file() calls

Use the static attribute groups assigned to the device instead of
manual device_create_file() & co calls.  It simplifies the code and
can avoid possible races, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c