All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: add backport for of_platform_default_populate()
@ 2015-10-15 10:14 Arend van Spriel
  2015-11-07 17:09 ` Hauke Mehrtens
  0 siblings, 1 reply; 2+ messages in thread
From: Arend van Spriel @ 2015-10-15 10:14 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: backports, 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.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
---
 backport/backport-include/linux/of_platform.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/backport/backport-include/linux/of_platform.h b/backport/backport-include/linux/of_platform.h
index 7b0e906..3d83f4a 100644
--- a/backport/backport-include/linux/of_platform.h
+++ b/backport/backport-include/linux/of_platform.h
@@ -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 */
-- 
1.9.1

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] backports: add backport for of_platform_default_populate()
  2015-10-15 10:14 [PATCH] backports: add backport for of_platform_default_populate() Arend van Spriel
@ 2015-11-07 17:09 ` Hauke Mehrtens
  0 siblings, 0 replies; 2+ messages in thread
From: Hauke Mehrtens @ 2015-11-07 17:09 UTC (permalink / raw)
  To: Arend van Spriel, Luis R. Rodriguez; +Cc: backports

On 10/15/2015 12:14 PM, Arend van Spriel wrote:
> 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.
> 
> Signed-off-by: Arend van Spriel <arend@broadcom.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-07 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-15 10:14 [PATCH] backports: add backport for of_platform_default_populate() Arend van Spriel
2015-11-07 17:09 ` Hauke Mehrtens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.