]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/net/hamachi.c
bcmdhd: use the wiphy from private data structure (i.e., wl_priv)
[linux-2.6.git] / drivers / net / hamachi.c
index a09041aa85099d0e210cda09de1ea90da8f2a4b5..c274b3d77eb5994b48e5863ac9703852656786a7 100644 (file)
@@ -648,13 +648,13 @@ static int __devinit hamachi_init_one (struct pci_dev *pdev,
        ring_space = pci_alloc_consistent(pdev, TX_TOTAL_SIZE, &ring_dma);
        if (!ring_space)
                goto err_out_cleardev;
-       hmp->tx_ring = (struct hamachi_desc *)ring_space;
+       hmp->tx_ring = ring_space;
        hmp->tx_ring_dma = ring_dma;
 
        ring_space = pci_alloc_consistent(pdev, RX_TOTAL_SIZE, &ring_dma);
        if (!ring_space)
                goto err_out_unmap_tx;
-       hmp->rx_ring = (struct hamachi_desc *)ring_space;
+       hmp->rx_ring = ring_space;
        hmp->rx_ring_dma = ring_dma;
 
        /* Check for options being passed in */