add gateway 7001 support patch from #1918
[openwrt/svn-archive/archive.git] / target / linux / brcm47xx-2.6 / files / drivers / ssb / scan.c
index feaf1e57d03d3fce3372ce5ec1dbabee19c601f3..b5d909c3a55903898ff6b8001e75ffb1c5a28ce7 100644 (file)
@@ -202,7 +202,11 @@ void ssb_iounmap(struct ssb_bus *bus)
                iounmap(bus->mmio);
                break;
        case SSB_BUSTYPE_PCI:
+#ifdef CONFIG_SSB_PCIHOST
                pci_iounmap(bus->host_pci, bus->mmio);
+#else
+               assert(0); /* Can't reach this code. */
+#endif
                break;
        }
        bus->mmio = NULL;
@@ -222,7 +226,11 @@ static void __iomem * ssb_ioremap(struct ssb_bus *bus,
                mmio = ioremap(baseaddr, SSB_CORE_SIZE);
                break;
        case SSB_BUSTYPE_PCI:
+#ifdef CONFIG_SSB_PCIHOST
                mmio = pci_iomap(bus->host_pci, 0, ~0UL);
+#else
+               assert(0); /* Can't reach this code. */
+#endif
                break;
        }