|
@@ -410,7 +410,11 @@ int bcma_bus_register(struct bcma_bus *bus)
|
|
|
bcma_core_pci_early_init(&bus->drv_pci[0]);
|
|
|
}
|
|
|
|
|
|
- if (bus->host_pdev) {
|
|
|
+ /* TODO: remove check for IS_BUILTIN(CONFIG_BCMA) check when
|
|
|
+ * of_default_bus_match_table is exported or in some other way
|
|
|
+ * accessible. This is just a temporary workaround.
|
|
|
+ */
|
|
|
+ if (IS_BUILTIN(CONFIG_BCMA) && bus->host_pdev) {
|
|
|
struct device *dev = &bus->host_pdev->dev;
|
|
|
|
|
|
of_platform_populate(dev->of_node, of_default_bus_match_table,
|