Skip to content

Commit 8b1fdb5

Browse files
committed
b43: avoid calling bcma_* if CONFIG_B43_BCMA is not set
Avoids this: ERROR: "bcma_chipco_pll_write" [drivers/net/wireless/b43/b43.ko] undefined! Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent c252165 commit 8b1fdb5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/net/wireless/b43/phy_n.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4048,6 +4048,7 @@ int b43_phy_initn(struct b43_wldev *dev)
40484048
/* http://bcm-v4.sipsolutions.net/802.11/PmuSpurAvoid */
40494049
static void b43_nphy_pmu_spur_avoid(struct b43_wldev *dev, bool avoid)
40504050
{
4051+
#ifdef CONFIG_B43_BCMA
40514052
struct bcma_drv_cc *cc = &dev->dev->bdev->bus->drv_cc;
40524053
u32 pmu_ctl;
40534054
if (dev->dev->chip_id == 43224 || dev->dev->chip_id == 43225) {
@@ -4098,6 +4099,9 @@ static void b43_nphy_pmu_spur_avoid(struct b43_wldev *dev, bool avoid)
40984099
return;
40994100
}
41004101
bcma_cc_set32(cc, BCMA_CC_PMU_CTL, pmu_ctl);
4102+
#else
4103+
return;
4104+
#endif
41014105
}
41024106

41034107
/* http://bcm-v4.sipsolutions.net/802.11/PHY/N/ChanspecSetup */

0 commit comments

Comments
 (0)