Commit 76890e69 authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: remove wl_alloc_dma_resources() function

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: default avatarHenry Ptasinski <henryp@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 419ad34e
...@@ -1444,14 +1444,6 @@ void brcms_intrson(struct brcms_info *wl) ...@@ -1444,14 +1444,6 @@ void brcms_intrson(struct brcms_info *wl)
INT_UNLOCK(wl, flags); 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) u32 brcms_intrsoff(struct brcms_info *wl)
{ {
unsigned long flags; unsigned long flags;
......
...@@ -87,7 +87,6 @@ extern int brcms_up(struct brcms_info *wl); ...@@ -87,7 +87,6 @@ extern int brcms_up(struct brcms_info *wl);
extern void brcms_down(struct brcms_info *wl); extern void brcms_down(struct brcms_info *wl);
extern void brcms_txflowcontrol(struct brcms_info *wl, struct brcms_if *wlif, extern void brcms_txflowcontrol(struct brcms_info *wl, struct brcms_if *wlif,
bool state, int prio); 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); extern bool brcms_rfkill_set_hw_state(struct brcms_info *wl);
/* timer functions */ /* timer functions */
......
...@@ -870,12 +870,6 @@ static bool brcms_b_attach_dmapio(struct brcms_c_info *wlc, uint j, bool wme) ...@@ -870,12 +870,6 @@ static bool brcms_b_attach_dmapio(struct brcms_c_info *wlc, uint j, bool wme)
addrwidth = addrwidth =
dma_addrwidth(wlc_hw->sih, DMAREG(wlc_hw, DMA_TX, 0)); 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 * FIFO 0
* TX: TX_AC_BK_FIFO (TX AC Background data packets) * TX: TX_AC_BK_FIFO (TX AC Background data packets)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment