diff options
Diffstat (limited to 'drivers/bcma/driver_pci_host.c')
-rw-r--r-- | drivers/bcma/driver_pci_host.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c index 63172c9f871a..e56449506695 100644 --- a/drivers/bcma/driver_pci_host.c +++ b/drivers/bcma/driver_pci_host.c | |||
@@ -35,11 +35,6 @@ bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) | |||
35 | chipid_top != 0x5300) | 35 | chipid_top != 0x5300) |
36 | return false; | 36 | return false; |
37 | 37 | ||
38 | if (bus->sprom.boardflags_lo & BCMA_CORE_PCI_BFL_NOPCI) { | ||
39 | bcma_info(bus, "This PCI core is disabled and not working\n"); | ||
40 | return false; | ||
41 | } | ||
42 | |||
43 | bcma_core_enable(pc->core, 0); | 38 | bcma_core_enable(pc->core, 0); |
44 | 39 | ||
45 | return !mips_busprobe32(tmp, pc->core->io_addr); | 40 | return !mips_busprobe32(tmp, pc->core->io_addr); |
@@ -396,6 +391,11 @@ void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) | |||
396 | 391 | ||
397 | bcma_info(bus, "PCIEcore in host mode found\n"); | 392 | bcma_info(bus, "PCIEcore in host mode found\n"); |
398 | 393 | ||
394 | if (bus->sprom.boardflags_lo & BCMA_CORE_PCI_BFL_NOPCI) { | ||
395 | bcma_info(bus, "This PCIE core is disabled and not working\n"); | ||
396 | return; | ||
397 | } | ||
398 | |||
399 | pc_host = kzalloc(sizeof(*pc_host), GFP_KERNEL); | 399 | pc_host = kzalloc(sizeof(*pc_host), GFP_KERNEL); |
400 | if (!pc_host) { | 400 | if (!pc_host) { |
401 | bcma_err(bus, "can not allocate memory"); | 401 | bcma_err(bus, "can not allocate memory"); |