Skip to content

Commit

Permalink
brcmsmac: remove nicpci.c
Browse files Browse the repository at this point in the history
There is no code doing anything useful in nicpci.c anymore, so remove
it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed May 16, 2012
1 parent c496fe3 commit 270e38d
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 330 deletions.
1 change: 0 additions & 1 deletion drivers/net/wireless/brcm80211/brcmsmac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ BRCMSMAC_OFILES := \
phy/phytbl_n.o \
phy/phy_qmath.o \
dma.o \
nicpci.o \
brcms_trace_events.o

MODULEPFX := brcmsmac
Expand Down
16 changes: 0 additions & 16 deletions drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/delay.h>
#include <linux/pci.h>

#include <defs.h>
#include <chipcommon.h>
Expand All @@ -29,7 +28,6 @@
#include "types.h"
#include "pub.h"
#include "pmu.h"
#include "nicpci.h"
#include "aiutils.h"

/* slow_clk_ctl */
Expand Down Expand Up @@ -478,13 +476,6 @@ ai_buscore_setup(struct si_info *sii, struct bcma_device *cc)
/* figure out buscore */
sii->buscore = ai_findcore(&sii->pub, PCIE_CORE_ID, 0);

/* fixup necessary chip/core configurations */
if (!sii->pch) {
sii->pch = pcicore_init(&sii->pub, sii->icbus->drv_pci.core);
if (sii->pch == NULL)
return false;
}

return true;
}

Expand Down Expand Up @@ -565,9 +556,6 @@ static struct si_info *ai_doattach(struct si_info *sii,
return sii;

exit:
if (sii->pch)
pcicore_deinit(sii->pch);
sii->pch = NULL;

return NULL;
}
Expand Down Expand Up @@ -606,10 +594,6 @@ void ai_detach(struct si_pub *sih)
if (sii == NULL)
return;

if (sii->pch)
pcicore_deinit(sii->pch);
sii->pch = NULL;

kfree(sii);
}

Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/brcm80211/brcmsmac/aiutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ struct si_info {
struct si_pub pub; /* back plane public state (must be first) */
struct bcma_bus *icbus; /* handle to soc interconnect bus */
struct pci_dev *pcibus; /* handle to pci bus */
struct pcicore_info *pch; /* PCI/E core handle */
struct bcma_device *buscore;

u32 chipst; /* chip status */
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <linux/bcma/bcma.h>
#include <net/mac80211.h>
#include <defs.h>
#include "nicpci.h"
#include "phy/phy_int.h"
#include "d11.h"
#include "channel.h"
Expand Down
241 changes: 0 additions & 241 deletions drivers/net/wireless/brcm80211/brcmsmac/nicpci.c

This file was deleted.

70 changes: 0 additions & 70 deletions drivers/net/wireless/brcm80211/brcmsmac/nicpci.h

This file was deleted.

0 comments on commit 270e38d

Please sign in to comment.