]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
firmware_class: Split _request_firmware() into three functions, v2
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 28 Mar 2012 21:29:55 +0000 (23:29 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 28 Mar 2012 21:29:55 +0000 (23:29 +0200)
commit811fa4004485dec8977176bf605a5b0508ee206c
treeafa0924a75f217a27f7438e34758747413ba635a
parentfe2e39d8782d885755139304d8dba0b3e5bfa878
firmware_class: Split _request_firmware() into three functions, v2

Split _request_firmware() into three functions,
_request_firmware_prepare() doing preparatory work that need not be
done under umhelper_sem, _request_firmware_cleanup() doing the
post-error cleanup and _request_firmware() carrying out the remaining
operations.

This change is requisite for moving the acquisition of umhelper_sem
from _request_firmware() to the callers, which is going to be done
subsequently.

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