Thread (4 messages) 4 messages, 3 authors, 2015-07-25
STALE3976d

[PATCH] bcma: populate bus DT subnodes as platform_device-s

From: Kalle Valo <hidden>
Date: 2015-07-23 06:06:28
Also in: linux-wireless

Rafa? Mi?ecki [off-list ref] writes:
quoted
+       if (bus->host_pdev) {
+               struct device *dev = &bus->host_pdev->dev;
+
+               of_platform_populate(dev->of_node, of_default_bus_match_table,
+                                    NULL, dev);
+       }
+
This caused a compile error when using bcma as module:
ERROR: "of_default_bus_match_table" [drivers/bcma/bcma.ko] undefined!

There are two options I guess:
1) Export of_default_bus_match_table
2) Use some better condition like
if (IS_BUILTIN(CONFIG_BCMA) && bus->host_pdev)

Unfortunately I'm on my long holidays right now.

Hauke: do you think you can find a moment to handle this?
I can cook up a patch which uses IS_BUILTIN() so that we get the build
working again. You can fix this better once you come back.
Sorry for the problem :|
No worries, enjoy your vacation :)

-- 
Kalle Valo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help