rt2x00: allow txstatus_fifo w/o txstatus_tasklet
authorJohannes Stezenbach <js@sig21.net>
Mon, 27 Dec 2010 14:04:54 +0000 (15:04 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:35:13 +0000 (14:35 -0500)
commit5235189c8edddf2eb32982f814bc858b55e6350a
tree18ca41ae181c398d9cf9ad94fb5c36a11231e663
parentc4d63244218bf93d1f0cdf4389e0906df8f506c1
rt2x00: allow txstatus_fifo w/o txstatus_tasklet

When DRIVER_REQUIRE_TXSTATUS_FIFO is set, intialize the
txstatus_fifo, but initialize rt2x00dev->txstatus_tasklet
only when both DRIVER_REQUIRE_TXSTATUS_FIFO and
rt2x00dev->ops->lib->txstatus_tasklet are set.

This allows the txstatus_fifo to be used by rt2800usb which
does not use txstatus_tasklet.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c