staging: brcm80211: remove wl_alloc_dma_resources() function
authorArend van Spriel <arend@broadcom.com>
Mon, 8 Aug 2011 13:58:44 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:00:07 +0000 (13:00 -0700)
The function wl_alloc_dma_resources() does not provide any value
for the brcmsmac driver as it only returns true. It has been
removed from the driver.

Reviewed-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/mac80211_if.c
drivers/staging/brcm80211/brcmsmac/mac80211_if.h
drivers/staging/brcm80211/brcmsmac/main.c

index 0af60414d9ee750fabe8880b9f76026f22d8be9e..c66b67f900f4273b30d4b4faa852149f09681635 100644 (file)
@@ -1444,14 +1444,6 @@ void brcms_intrson(struct brcms_info *wl)
        INT_UNLOCK(wl, flags);
 }
 
-/*
- * precondition: perimeter lock has been acquired
- */
-bool wl_alloc_dma_resources(struct brcms_info *wl, uint addrwidth)
-{
-       return true;
-}
-
 u32 brcms_intrsoff(struct brcms_info *wl)
 {
        unsigned long flags;
index 0d913664355fd72aea9871dc6b9faddfd396b736..01fce542f23a57bd95d901c46588131a1e600b62 100644 (file)
@@ -87,7 +87,6 @@ extern int brcms_up(struct brcms_info *wl);
 extern void brcms_down(struct brcms_info *wl);
 extern void brcms_txflowcontrol(struct brcms_info *wl, struct brcms_if *wlif,
                                bool state, int prio);
-extern bool wl_alloc_dma_resources(struct brcms_info *wl, uint dmaddrwidth);
 extern bool brcms_rfkill_set_hw_state(struct brcms_info *wl);
 
 /* timer functions */
index d1a8388073a6f74b1473b96fe61a465a65809dbd..d2551e970e585b4a3a36adbc0532e5c1ce22423a 100644 (file)
@@ -870,12 +870,6 @@ static bool brcms_b_attach_dmapio(struct brcms_c_info *wlc, uint j, bool wme)
                addrwidth =
                    dma_addrwidth(wlc_hw->sih, DMAREG(wlc_hw, DMA_TX, 0));
 
-               if (!wl_alloc_dma_resources(wlc_hw->wlc->wl, addrwidth)) {
-                       wiphy_err(wiphy, "wl%d: wlc_attach: alloc_dma_"
-                                 "resources failed\n", unit);
-                       return false;
-               }
-
                /*
                 * FIFO 0
                 * TX: TX_AC_BK_FIFO (TX AC Background data packets)