ar9170: fix lockdep warning on hibernate
authorChristian Lamparter <chunkeey@web.de>
Sat, 23 May 2009 18:31:21 +0000 (20:31 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:05:15 +0000 (14:05 -0400)
commitb55d6bcf9b7082ae613e5d532608abcd409164ca
tree43c0240aaa07bc53089b01dfcfd0d86afd0efa14
parent2431fe9a4b43ccf03589fa661662da6bfbd97282
ar9170: fix lockdep warning on hibernate

This patch takes care of Johannes' deadlock report by moving the
mutex_lock right after cancel_work_sync in ar9170_op_stop.

Besides, the janitor does not need to hold the mutex anymore,
so this extra lines can be removed as well.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/main.c