|
@@ -876,6 +876,7 @@ struct b43legacy_dmaring *b43legacy_setup_dmaring(struct b43legacy_wldev *dev,
|
|
if (!ring)
|
|
if (!ring)
|
|
goto out;
|
|
goto out;
|
|
ring->type = type;
|
|
ring->type = type;
|
|
|
|
+ ring->dev = dev;
|
|
|
|
|
|
nr_slots = B43legacy_RXRING_SLOTS;
|
|
nr_slots = B43legacy_RXRING_SLOTS;
|
|
if (for_tx)
|
|
if (for_tx)
|
|
@@ -922,7 +923,6 @@ struct b43legacy_dmaring *b43legacy_setup_dmaring(struct b43legacy_wldev *dev,
|
|
DMA_TO_DEVICE);
|
|
DMA_TO_DEVICE);
|
|
}
|
|
}
|
|
|
|
|
|
- ring->dev = dev;
|
|
|
|
ring->nr_slots = nr_slots;
|
|
ring->nr_slots = nr_slots;
|
|
ring->mmio_base = b43legacy_dmacontroller_base(type, controller_index);
|
|
ring->mmio_base = b43legacy_dmacontroller_base(type, controller_index);
|
|
ring->index = controller_index;
|
|
ring->index = controller_index;
|