firmware_class: Reorganize fw_create_instance()
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 28 Mar 2012 21:30:43 +0000 (23:30 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 13:07:39 +0000 (18:07 +0530)
commit7ae912936379a40216ddbe166d82a7b13c246af8
treea8ac6aeb01be8d3faec067aea4fc9058ac8d04b7
parentbc1ba19b6228e1597dab68125ad5ef01b7520e4d
firmware_class: Reorganize fw_create_instance()

Recent patches to split up the three phases of request_firmware()
lead to a casting away of const in fw_create_instance(). We can
avoid this cast by splitting up fw_create_instance() a bit.

Make _request_firmware_setup() return a struct fw_priv and use
that struct instead of passing struct firmware to
_request_firmware(). Move the uevent and device file creation
bits to the loading phase and rename the function to
_request_firmware_load() to better reflect its purpose.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/firmware_class.c