]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
b43: Fix compilation for devices without PCI core
authorMichael Buesch <mb@bu3sch.de>
Wed, 4 Mar 2009 15:41:10 +0000 (16:41 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Mar 2009 19:39:48 +0000 (14:39 -0500)
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>
drivers/net/wireless/b43/main.c

index 8e1126d99f4c4579926c9357da145c87d5acdcf8..b72ef3fd315a41833ed1cfb4b863de56443c99e0 100644 (file)
@@ -4179,9 +4179,11 @@ static int b43_wireless_core_init(struct b43_wldev *dev)
        }
        if (sprom->boardflags_lo & B43_BFL_XTAL_NOSLOW)
                hf |= B43_HF_DSCRQ; /* Disable slowclock requests from ucode. */
+#ifdef CONFIG_SSB_DRIVER_PCICORE
        if ((bus->bustype == SSB_BUSTYPE_PCI) &&
            (bus->pcicore.dev->id.revision <= 10))
                hf |= B43_HF_PCISCW; /* PCI slow clock workaround. */
+#endif
        hf &= ~B43_HF_SKCFPUP;
        b43_hf_write(dev, hf);