]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 16:13:53 +0000 (09:13 -0700)
commit4aaf8189db4a00e133afbb0e538e8c4f5551a833
tree177fae13b3dd836fe132ee0b5c5cf62eca4bf947
parent1cbfac52d7ccb45e3a3ea1941ed626997143456c
firmware_class: Split _request_firmware() into three functions, v2

commit 811fa4004485dec8977176bf605a5b0508ee206c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c