aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/brcmsmac/main.c
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2011-12-08 18:06:56 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-12-13 15:33:07 -0500
commit7d8e18e456466c2247abe0658e4add598f85c98e (patch)
treefd422f171a22f467d0184ee6835e866408965c95 /drivers/net/wireless/brcm80211/brcmsmac/main.c
parentad5db1317c04ece569d18c692f8e49453c552d1e (diff)
brcm80211: smac: replace ai_corereg() function with ai_cc_reg()
The ai_corereg() function is only used in the driver to safely access the chipcommon core. The function has been renamed to ai_cc_reg() removing the need to provide a core index parameter. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Alwin Beukers <alwin@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/main.c')
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c
index 5db2bdc67a56..7ee86d4a056e 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
@@ -1709,17 +1709,17 @@ void brcms_b_core_phypll_reset(struct brcms_hardware *wlc_hw)
1709{ 1709{
1710 BCMMSG(wlc_hw->wlc->wiphy, "wl%d\n", wlc_hw->unit); 1710 BCMMSG(wlc_hw->wlc->wiphy, "wl%d\n", wlc_hw->unit);
1711 1711
1712 ai_corereg(wlc_hw->sih, SI_CC_IDX, 1712 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_addr),
1713 offsetof(struct chipcregs, chipcontrol_addr), ~0, 0); 1713 ~0, 0);
1714 udelay(1); 1714 udelay(1);
1715 ai_corereg(wlc_hw->sih, SI_CC_IDX, 1715 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_data),
1716 offsetof(struct chipcregs, chipcontrol_data), 0x4, 0); 1716 0x4, 0);
1717 udelay(1); 1717 udelay(1);
1718 ai_corereg(wlc_hw->sih, SI_CC_IDX, 1718 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_data),
1719 offsetof(struct chipcregs, chipcontrol_data), 0x4, 4); 1719 0x4, 4);
1720 udelay(1); 1720 udelay(1);
1721 ai_corereg(wlc_hw->sih, SI_CC_IDX, 1721 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_data),
1722 offsetof(struct chipcregs, chipcontrol_data), 0x4, 0); 1722 0x4, 0);
1723 udelay(1); 1723 udelay(1);
1724} 1724}
1725 1725