wl12xx: Power off after flushing work
authorIdo Yariv <ido@wizery.com>
Wed, 11 Jan 2012 07:42:40 +0000 (09:42 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:28 +0000 (08:38 +0200)
commita454969ede024a209e6a755d5f7a928ab81ed00c
tree585296f78c132e320471a0d5acc022fef8fcc288
parentf3df1331f25f782e838a3ecb72cec86b539ac02f
wl12xx: Power off after flushing work

When stopping plt, the chip is powered off before all current work items
are flushed and interrupts are disabled. This might introduce a race in
which the driver tries to communicate with a powered off chip.

Fix this by powering off the device only after interrupts are disabled
and all work items are flushed.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c