diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index fa74acdd271f..97a8911571ce 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -813,8 +813,7 @@ static int rt2x00lib_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
813 | /* | 813 | /* |
814 | * Allocate tx status FIFO for driver use. | 814 | * Allocate tx status FIFO for driver use. |
815 | */ | 815 | */ |
816 | if (test_bit(DRIVER_REQUIRE_TXSTATUS_FIFO, &rt2x00dev->flags) && | 816 | if (test_bit(DRIVER_REQUIRE_TXSTATUS_FIFO, &rt2x00dev->flags)) { |
817 | rt2x00dev->ops->lib->txstatus_tasklet) { | ||
818 | /* | 817 | /* |
819 | * Allocate txstatus fifo and tasklet, we use a size of 512 | 818 | * Allocate txstatus fifo and tasklet, we use a size of 512 |
820 | * for the kfifo which is big enough to store 512/4=128 tx | 819 | * for the kfifo which is big enough to store 512/4=128 tx |
@@ -828,9 +827,10 @@ static int rt2x00lib_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
828 | return status; | 827 | return status; |
829 | 828 | ||
830 | /* tasklet for processing the tx status reports. */ | 829 | /* tasklet for processing the tx status reports. */ |
831 | tasklet_init(&rt2x00dev->txstatus_tasklet, | 830 | if (rt2x00dev->ops->lib->txstatus_tasklet) |
832 | rt2x00dev->ops->lib->txstatus_tasklet, | 831 | tasklet_init(&rt2x00dev->txstatus_tasklet, |
833 | (unsigned long)rt2x00dev); | 832 | rt2x00dev->ops->lib->txstatus_tasklet, |
833 | (unsigned long)rt2x00dev); | ||
834 | 834 | ||
835 | } | 835 | } |
836 | 836 | ||