aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_class.c
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2009-05-28 23:33:19 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-16 00:30:24 -0400
commit7fcab099795812a8a08eb3b8c8ddb35c3685045f (patch)
treede2bd852d27ac721e6d40b85e7661d7f438119e0 /drivers/base/firmware_class.c
parentc4c01684349ac0821ad8c27de9516fe493f3361d (diff)
driver core: fix documentation of request_firmware_nowait
request_firmware_nowait declares it can be called in non-sleep contexts, but kthead_run called by request_firmware_nowait may sleep. So fix its documentation and comment to make callers clear about it. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/firmware_class.c')
-rw-r--r--drivers/base/firmware_class.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 2d296b7f7034..242770250584 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -617,8 +617,9 @@ request_firmware_work_func(void *arg)
617 * @cont: function will be called asynchronously when the firmware 617 * @cont: function will be called asynchronously when the firmware
618 * request is over. 618 * request is over.
619 * 619 *
620 * Asynchronous variant of request_firmware() for contexts where 620 * Asynchronous variant of request_firmware() for user contexts where
621 * it is not possible to sleep. 621 * it is not possible to sleep for long time. It can't be called
622 * in atomic contexts.
622 **/ 623 **/
623int 624int
624request_firmware_nowait( 625request_firmware_nowait(