]> git.baikalelectronics.ru Git - kernel.git/commit
wireless/rt2x00: don't use PREPARE_WORK in rt2800usb.c
authorTejun Heo <tj@kernel.org>
Fri, 7 Mar 2014 15:24:47 +0000 (10:24 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 7 Mar 2014 15:24:47 +0000 (10:24 -0500)
commit4b590b5ae151f480a95f16455a271724708319cc
treeed96fbcfb8a14d319348234aea315cbf03f04f89
parent86eab753c6665b7b2a99923c33466bedff199045
wireless/rt2x00: don't use PREPARE_WORK in rt2800usb.c

PREPARE_[DELAYED_]WORK() are being phased out.  They have few users
and a nasty surprise in terms of reentrancy guarantee as workqueue
considers work items to be different if they don't have the same work
function.

Update rt2800usb.c to use INIT_WORK() instead of PREPARE_WORK().  As
the work item isn't in active use during rt2800usb_probe_hw(), this
doesn't cause any behavior difference.

It would probably be best to route this with other related updates
through the workqueue tree.

Only compile tested.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
Cc: Gertjan van Wingerde <gwingerde@gmail.com>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>
Cc: linux-wireless@vger.kernel.org
drivers/net/wireless/rt2x00/rt2800usb.c