Skip to contentSkip to conversation

backports: add backport for of_platform_default_populate()

PATCH In review Arend van Spriel 2 participants 2 messages Oct 15, 2015 – Nov 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: add backport for of_platform_default_populate()

Since commit 69b5f4da2636 ("bcma: add support for population subnodes also when build as module") the bcma driver uses the function of_platform_default_populate(). This patch provides the stub function.

---
 backport/backport-include/linux/of_platform.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
backport/backport-include/linux/of_platform.h +13 -0
index 7b0e906..3d83f4a 100644
@@ -20,4 +20,17 @@ static inline int of_platform_populate(struct device_node *root,
 extern const struct of_device_id of_default_bus_match_table[];
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0) */
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0) && !defined(CONFIG_OF_DEVICE)
+struct of_dev_auxdata;
+#define of_platform_default_populate \
+	LINUX_BACKPORT(of_platform_default_populate)
+static inline int
+of_platform_default_populate(struct device_node *root,
+			     const struct of_dev_auxdata *lookup,
+			     struct device *parent)
+{
+	return -ENODEV;
+}
+#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0) */
+
 #endif /* __BACKPORT_LINUX_OF_PLATFORM_H */
Signature · 4 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
#1 lore raw
Quoted 9 lines · Arend van Spriel

Since commit 69b5f4da2636 ("bcma: add support for population subnodes also when build as module") the bcma driver uses the function of_platform_default_populate(). This patch provides the stub function.

---
 backport/backport-include/linux/of_platform.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Thank you for the patch, it was applied.

Hauke

--
To unsubscribe from this list: send the line "unsubscribe backports" in