diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-03-04 10:41:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-05 14:39:48 -0500 |
commit | 1a77733ccb9654716160fdfb3f1f2a9e1759de19 (patch) | |
tree | 0b9d8751b782d968b91dbe003d2294e379d4458c /drivers | |
parent | 39d89cd34d9900cd2415f46e179b91cdd14b15fe (diff) |
b43: Fix compilation for devices without PCI core
This fixes compilation, if the PCI core is disabled.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 8e1126d99f4c..b72ef3fd315a 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -4179,9 +4179,11 @@ static int b43_wireless_core_init(struct b43_wldev *dev) | |||
4179 | } | 4179 | } |
4180 | if (sprom->boardflags_lo & B43_BFL_XTAL_NOSLOW) | 4180 | if (sprom->boardflags_lo & B43_BFL_XTAL_NOSLOW) |
4181 | hf |= B43_HF_DSCRQ; /* Disable slowclock requests from ucode. */ | 4181 | hf |= B43_HF_DSCRQ; /* Disable slowclock requests from ucode. */ |
4182 | #ifdef CONFIG_SSB_DRIVER_PCICORE | ||
4182 | if ((bus->bustype == SSB_BUSTYPE_PCI) && | 4183 | if ((bus->bustype == SSB_BUSTYPE_PCI) && |
4183 | (bus->pcicore.dev->id.revision <= 10)) | 4184 | (bus->pcicore.dev->id.revision <= 10)) |
4184 | hf |= B43_HF_PCISCW; /* PCI slow clock workaround. */ | 4185 | hf |= B43_HF_PCISCW; /* PCI slow clock workaround. */ |
4186 | #endif | ||
4185 | hf &= ~B43_HF_SKCFPUP; | 4187 | hf &= ~B43_HF_SKCFPUP; |
4186 | b43_hf_write(dev, hf); | 4188 | b43_hf_write(dev, hf); |
4187 | 4189 | ||