|
@@ -179,9 +179,7 @@ int cw1200_queue_init(struct cw1200_queue *queue,
|
|
|
INIT_LIST_HEAD(&queue->pending);
|
|
INIT_LIST_HEAD(&queue->pending);
|
|
|
INIT_LIST_HEAD(&queue->free_pool);
|
|
INIT_LIST_HEAD(&queue->free_pool);
|
|
|
spin_lock_init(&queue->lock);
|
|
spin_lock_init(&queue->lock);
|
|
|
- init_timer(&queue->gc);
|
|
|
|
|
- queue->gc.data = (unsigned long)queue;
|
|
|
|
|
- queue->gc.function = cw1200_queue_gc;
|
|
|
|
|
|
|
+ setup_timer(&queue->gc, cw1200_queue_gc, (unsigned long)queue);
|
|
|
|
|
|
|
|
queue->pool = kzalloc(sizeof(struct cw1200_queue_item) * capacity,
|
|
queue->pool = kzalloc(sizeof(struct cw1200_queue_item) * capacity,
|
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|